diff --git a/src/lib/fs.rs b/src/lib/fs.rs index 945a0a32c7bf..fcd95040ab05 100644 --- a/src/lib/fs.rs +++ b/src/lib/fs.rs @@ -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")] diff --git a/src/lib/win32_os.rs b/src/lib/win32_os.rs index 5099b7716d67..c926af31d51c 100644 --- a/src/lib/win32_os.rs +++ b/src/lib/win32_os.rs @@ -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