fix name of SetCurrentDirectory

This commit is contained in:
Niko Matsakis 2011-12-01 19:31:12 -08:00
parent 9b3f8bf2a9
commit dfb2c15bba
2 changed files with 2 additions and 2 deletions

View File

@ -183,7 +183,7 @@ fn change_dir(p: path) -> bool {
#[cfg(target_os = "win32")]
fn chdir(_p: path) -> bool {
ret str::as_buf(_p, {|buf| os::kernel32::SetCurrentDirectory(buf)});
ret str::as_buf(_p, {|buf| os::kernel32::SetCurrentDirectoryA(buf)});
}
#[cfg(target_os = "linux")]

View File

@ -55,7 +55,7 @@ native mod kernel32 {
fn CreateDirectoryA(lpPathName: LPCTSTR,
lpSecurityAttributes: LPSECURITY_ATTRIBUTES) -> bool;
fn RemoveDirectoryA(lpPathName: LPCTSTR) -> bool;
fn SetCurrentDirectory(lpPathName: LPCTSTR) -> bool;
fn SetCurrentDirectoryA(lpPathName: LPCTSTR) -> bool;
}
// FIXME turn into constants