update for HEAD-2003021201
[reactos.git] / lib / msvcrt / direct / chdrive.c
index 6b67c8f..1522904 100644 (file)
@@ -3,21 +3,22 @@
 #include <msvcrt/direct.h>
 #include <msvcrt/stdlib.h>
 
+
 int cur_drive = 0;
 
-int _chdrive( int drive )
-{
-       char d[3];
-       if (!( drive >= 1 && drive <= 26 ))
-               return -1;
 
-       if ( cur_drive != drive ) {
-               cur_drive = drive;
-               d[0] = toupper(cur_drive + '@');
-               d[1] = ':';
-               d[2] = 0;
-               SetCurrentDirectoryA(d);
-       }
+int _chdrive(int drive)
+{
+    char d[3];
 
-       return 0;
+    if (!( drive >= 1 && drive <= 26))
+        return -1;
+    if (cur_drive != drive) {
+        cur_drive = drive;
+        d[0] = toupper(cur_drive + '@');
+        d[1] = ':';
+        d[2] = 0;
+        SetCurrentDirectoryA(d);
+    }
+    return 0;
 }