Skip to content

Commit 8f38eae

Browse files
committed
wrmdir -> RemoveDirectoryW
Signed-off-by: Peter Atashian <[email protected]>
1 parent 43046be commit 8f38eae

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/liblibc/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ pub use funcs::bsd43::{shutdown};
271271
#[cfg(windows)] pub use funcs::extra::kernel32::{GetOverlappedResult, ConnectNamedPipe};
272272
#[cfg(windows)] pub use funcs::extra::kernel32::{DisconnectNamedPipe, OpenProcess};
273273
#[cfg(windows)] pub use funcs::extra::kernel32::{MoveFileExW, VirtualProtect};
274+
#[cfg(windows)] pub use funcs::extra::kernel32::{RemoveDirectoryW};
274275
#[cfg(windows)] pub use funcs::extra::msvcrt::{get_osfhandle, open_osfhandle};
275276
#[cfg(windows)] pub use funcs::extra::winsock::{ioctlsocket};
276277

src/libstd/sys/windows/fs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ pub fn chmod(p: &Path, mode: uint) -> IoResult<()> {
342342

343343
pub fn rmdir(p: &Path) -> IoResult<()> {
344344
let p = try!(to_utf16(p));
345-
mkerr_libc(unsafe { libc::wrmdir(p.as_ptr()) })
345+
super::mkerr_winbool(unsafe { libc::RemoveDirectoryW(p.as_ptr()) })
346346
}
347347

348348
pub fn chown(_p: &Path, _uid: int, _gid: int) -> IoResult<()> {

0 commit comments

Comments
 (0)