projects
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Added binary and unicode file i/o support to msvcrt.
[reactos.git]
/
reactos
/
lib
/
msvcrt
/
direct
/
wchdir.c
1
#include <windows.h>
2
#include <msvcrt/ctype.h>
3
#include <msvcrt/direct.h>
4
5
6
int
_wchdir
(
const wchar_t
*
_path
)
7
{
8
if
(
_path
[
1
] ==
L
':'
)
9
_chdrive
(
towlower
(
_path
[
0
] -
L
'a'
)+
1
);
10
if
(!
SetCurrentDirectoryW
((
wchar_t
*)
_path
))
11
return
-
1
;
12
return
0
;
13
}