git://git.jankratochvil.net
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
update for HEAD-2003091401
[reactos.git]
/
lib
/
msvcrt
/
direct
/
wchdir.c
1
#include <windows.h>
2
#include <msvcrt/ctype.h>
3
#include <msvcrt/direct.h>
4
5
6
/*
7
* @implemented
8
*/
9
int _wchdir (const wchar_t *_path)
10
{
11
if (_path[1] == L':')
12
_chdrive(towlower(_path[0] - L'a')+1);
13
if (!SetCurrentDirectoryW((wchar_t *)_path))
14
return -1;
15
return 0;
16
}