diff --git a/vlib/os/os.v b/vlib/os/os.v index dcd3a95098..519b9a7e99 100644 --- a/vlib/os/os.v +++ b/vlib/os/os.v @@ -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"') } }