Skip to content

Commit dfb2c15

Browse files
committed
fix name of SetCurrentDirectory
1 parent 9b3f8bf commit dfb2c15

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lib/fs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ fn change_dir(p: path) -> bool {
183183

184184
#[cfg(target_os = "win32")]
185185
fn chdir(_p: path) -> bool {
186-
ret str::as_buf(_p, {|buf| os::kernel32::SetCurrentDirectory(buf)});
186+
ret str::as_buf(_p, {|buf| os::kernel32::SetCurrentDirectoryA(buf)});
187187
}
188188

189189
#[cfg(target_os = "linux")]

src/lib/win32_os.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ native mod kernel32 {
5555
fn CreateDirectoryA(lpPathName: LPCTSTR,
5656
lpSecurityAttributes: LPSECURITY_ATTRIBUTES) -> bool;
5757
fn RemoveDirectoryA(lpPathName: LPCTSTR) -> bool;
58-
fn SetCurrentDirectory(lpPathName: LPCTSTR) -> bool;
58+
fn SetCurrentDirectoryA(lpPathName: LPCTSTR) -> bool;
5959
}
6060

6161
// FIXME turn into constants

0 commit comments

Comments
 (0)