fix name of SetCurrentDirectory
This commit is contained in:
parent
9b3f8bf2a9
commit
dfb2c15bba
2 changed files with 2 additions and 2 deletions
|
|
@ -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")]
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue