summaryrefslogtreecommitdiffhomepage
path: root/Private/KernelKit/DriveManager.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'Private/KernelKit/DriveManager.hpp')
-rw-r--r--Private/KernelKit/DriveManager.hpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/Private/KernelKit/DriveManager.hpp b/Private/KernelKit/DriveManager.hpp
index a9e26fd3..6cfb007b 100644
--- a/Private/KernelKit/DriveManager.hpp
+++ b/Private/KernelKit/DriveManager.hpp
@@ -31,13 +31,13 @@ enum {
kDriveCnt = 9,
};
-typedef Int64 DriveID;
+typedef Int64 rt_drive_id_type;
/// @brief Mounted drive traits.
struct DriveTraits final {
- char fName[kDriveNameLen]; // /System, /Boot, /USBDevice...
+ Char fName[kDriveNameLen]; // /System, /Boot, //./Devices/USB...
Int32 fKind; // fMassStorage, fFloppy, fOpticalDisc.
- DriveID fId; // Drive id.
+ rt_drive_id_type fId; // Drive id.
Int32 fFlags; // fReadOnly, fXPMDrive, fXPTDrive
//! for StorageKit.
@@ -77,6 +77,8 @@ class Mountpoint final {
DriveDevicePtr D() { return mD; }
DriveDevicePtr* GetAddressOf(int index) {
+ DbgLastError() = kErrorSuccess;
+
switch (index) {
case 0:
return &mA;
@@ -87,8 +89,9 @@ class Mountpoint final {
case 3:
return &mD;
default: {
- GetLastError() = kErrorNoSuchDisk;
+ DbgLastError() = kErrorNoSuchDisk;
kcout << "HCoreKrnl\\Mountpoint: Check HError.\n";
+
break;
}
}