about summary refs log tree commit diff
path: root/src/libstd/sys
diff options
context:
space:
mode:
authorPeter Atashian <retep998@gmail.com>2015-01-25 23:00:21 -0500
committerPeter Atashian <retep998@gmail.com>2015-01-25 23:00:21 -0500
commit8f38eae7ad732350cca979d077b8eecc632230e7 (patch)
treed18ed76bd0614b9acb541fb721b86699e3ecfd9a /src/libstd/sys
parent43046becce78147fa43808626bbb48569086b6a5 (diff)
downloadrust-8f38eae7ad732350cca979d077b8eecc632230e7.tar.gz
rust-8f38eae7ad732350cca979d077b8eecc632230e7.zip
wrmdir -> RemoveDirectoryW
Signed-off-by: Peter Atashian <retep998@gmail.com>
Diffstat (limited to 'src/libstd/sys')
-rw-r--r--src/libstd/sys/windows/fs.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys/windows/fs.rs b/src/libstd/sys/windows/fs.rs
index cb8ef7eb66b..bdcbcdfb867 100644
--- a/src/libstd/sys/windows/fs.rs
+++ b/src/libstd/sys/windows/fs.rs
@@ -342,7 +342,7 @@ pub fn chmod(p: &Path, mode: uint) -> IoResult<()> {
 
 pub fn rmdir(p: &Path) -> IoResult<()> {
     let p = try!(to_utf16(p));
-    mkerr_libc(unsafe { libc::wrmdir(p.as_ptr()) })
+    super::mkerr_winbool(unsafe { libc::RemoveDirectoryW(p.as_ptr()) })
 }
 
 pub fn chown(_p: &Path, _uid: int, _gid: int) -> IoResult<()> {