diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2011-12-01 19:31:12 -0800 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2011-12-01 19:31:12 -0800 |
| commit | dfb2c15bbaff69b47240e81f6331fb11cbc24e48 (patch) | |
| tree | 56de200630282eb703be9dc35697ba337629ae65 /src | |
| parent | 9b3f8bf2a9a78ab41f6dc112162a64287ce56d89 (diff) | |
| download | rust-dfb2c15bbaff69b47240e81f6331fb11cbc24e48.tar.gz rust-dfb2c15bbaff69b47240e81f6331fb11cbc24e48.zip | |
fix name of SetCurrentDirectory
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/fs.rs | 2 | ||||
| -rw-r--r-- | 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 945a0a32c7b..fcd95040ab0 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 5099b7716d6..c926af31d51 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 |
