os: fix rmdir on windows

pull/5516/head
Delyan Angelov 2020-06-26 17:24:36 +03:00
parent 8903f6e0c0
commit 951f30853a
1 changed files with 1 additions and 1 deletions

View File

@ -651,7 +651,7 @@ pub fn rmdir(path string) ? {
}
} $else {
rc := C.RemoveDirectory(path.to_wide())
if rc == -1 {
if rc == 0 {
return error('Failed to remove "$path"')
}
}