|
@@ -2855,6 +2855,7 @@ static bool DeleteJunction(const std::wstring& source)
|
|
|
return false;
|
|
return false;
|
|
|
#endif
|
|
#endif
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
bool SystemTools::RemoveFile(const std::string& source)
|
|
bool SystemTools::RemoveFile(const std::string& source)
|
|
@@ -2884,9 +2885,9 @@ bool SystemTools::RemoveFile(const std::string& source)
|
|
|
SetLastError(err);
|
|
SetLastError(err);
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
- if (IsJunction(ws) && !DeleteJunction(ws))
|
|
|
|
|
|
|
+ if (IsJunction(ws) && DeleteJunction(ws))
|
|
|
{
|
|
{
|
|
|
- return false;
|
|
|
|
|
|
|
+ return true;
|
|
|
}
|
|
}
|
|
|
if (DeleteFileW(ws.c_str()) ||
|
|
if (DeleteFileW(ws.c_str()) ||
|
|
|
GetLastError() == ERROR_FILE_NOT_FOUND ||
|
|
GetLastError() == ERROR_FILE_NOT_FOUND ||
|