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
/
chdir.c
diff --git
a/lib/crtdll/direct/chdir.c
b/lib/crtdll/direct/chdir.c
index
19a4a9f
..
eb8061d
100644
(file)
--- a/
lib/crtdll/direct/chdir.c
+++ b/
lib/crtdll/direct/chdir.c
@@
-1,18
+1,13
@@
#include <windows.h>
#include <windows.h>
-#include <
crtdll/direct
.h>
-#include <
crtdll/ctype
.h>
+#include <
msvcrt/ctype
.h>
+#include <
msvcrt/direct
.h>
-
-int _chdir( const char *_path )
+int _chdir(const char* _path)
{
{
- if ( _path[1] == ':')
- _chdrive(tolower(_path[0] - 'a')+1);
- if ( !SetCurrentDirectoryA((char *)_path) )
- return -1;
-
- return 0;
+ if (_path[1] == ':')
+ _chdrive(tolower(_path[0] - 'a')+1);
+ if (!SetCurrentDirectoryA((char*)_path))
+ return -1;
+ return 0;
}
}
-
-
-