os: fix rmdir on windows
parent
8903f6e0c0
commit
951f30853a
|
@ -651,7 +651,7 @@ pub fn rmdir(path string) ? {
|
||||||
}
|
}
|
||||||
} $else {
|
} $else {
|
||||||
rc := C.RemoveDirectory(path.to_wide())
|
rc := C.RemoveDirectory(path.to_wide())
|
||||||
if rc == -1 {
|
if rc == 0 {
|
||||||
return error('Failed to remove "$path"')
|
return error('Failed to remove "$path"')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue