From dfb2c15bbaff69b47240e81f6331fb11cbc24e48 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Thu, 1 Dec 2011 19:31:12 -0800 Subject: [PATCH] fix name of SetCurrentDirectory --- src/lib/fs.rs | 2 +- src/lib/win32_os.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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