branch update for HEAD-2003021201
[reactos.git] / lib / crtdll / direct / getdrive.c
index a57e9ba..5638c65 100644 (file)
@@ -1,26 +1,24 @@
-#include <crtdll/direct.h>
-#include <crtdll/ctype.h>
 #include <windows.h>
-
-extern int cur_drive;
+#include <msvcrt/ctype.h>
+#include <msvcrt/direct.h>
 
 
+extern int cur_drive;
 
-int _getdrive( void )
+int _getdrive(void)
 {
-       char Buffer[MAX_PATH];
+    char Buffer[MAX_PATH];
 
-       if ( cur_drive == 0 ) {
-               GetCurrentDirectoryA(MAX_PATH,Buffer);
-               cur_drive = toupper(Buffer[0] - '@');
-       }
-       
-       return cur_drive;
+    if (cur_drive == 0) {
+        GetCurrentDirectoryA(MAX_PATH, Buffer);
+        cur_drive = toupper(Buffer[0] - '@');
+    }
+    return cur_drive;
 }
 
 unsigned long _getdrives(void)
 {
     //fixme get logical drives
     //return GetLogicalDrives();
-     return 5;  // drive A and C
+    return 5;  // drive A and C
 }