(Windows) Fixed an issue where directory deletions would be incorrectly reported as failed.

This commit is contained in:
Leon Styhre 2021-01-31 20:30:43 +01:00
parent 392627f1fe
commit 4305c211eb

View file

@ -684,7 +684,7 @@ namespace Utils
return false;
}
#if defined(_WIN64)
if (_wrmdir(Utils::String::stringToWideString(path).c_str()) == 0) {
if (_wrmdir(Utils::String::stringToWideString(path).c_str()) != 0) {
#else
if (rmdir(path.c_str()) != 0) {
#endif