mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 21:12:59 +00:00
18 lines
247 B
C
18 lines
247 B
C
#include <windows.h>
|
|
#include <crtdll/direct.h>
|
|
#include <crtdll/ctype.h>
|
|
|
|
|
|
|
|
int _chdir( const char *_path )
|
|
{
|
|
if ( _path[1] == ':')
|
|
_chdrive(tolower(_path[0] - 'a')+1);
|
|
if ( !SetCurrentDirectory((char *)_path) )
|
|
return -1;
|
|
|
|
return 0;
|
|
}
|
|
|
|
|
|
|