git://git.jankratochvil.net
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
branch update for HEAD-2003021201
[reactos.git]
/
lib
/
crtdll
/
direct
/
chdrive.c
diff --git
a/lib/crtdll/direct/chdrive.c
b/lib/crtdll/direct/chdrive.c
index
84d04c6
..
1522904
100644
(file)
--- a/
lib/crtdll/direct/chdrive.c
+++ b/
lib/crtdll/direct/chdrive.c
@@
-1,26
+1,24
@@
-#include <crtdll/direct.h>
-#include <crtdll/stdlib.h>
-#include <crtdll/ctype.h>
#include <windows.h>
#include <windows.h>
+#include <msvcrt/ctype.h>
+#include <msvcrt/direct.h>
+#include <msvcrt/stdlib.h>
-int cur_drive = 0;
+int cur_drive = 0;
-int _chdrive(
int drive
)
+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);
- }
-
+ 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;
}
}