path_unlink() returned inverted status
This commit is contained in:
parent
2910ed02b4
commit
66845a4148
@ -860,7 +860,7 @@ bool path_chdir(const std::string& path)
|
|||||||
bool path_unlink(const std::string& path)
|
bool path_unlink(const std::string& path)
|
||||||
{
|
{
|
||||||
SYSPATH(path, syspath);
|
SYSPATH(path, syspath);
|
||||||
return UNLINK(syspath);
|
return UNLINK(syspath) == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(__GNUC__) || __GNUC__ > 4 || defined(__clang__)
|
#if !defined(__GNUC__) || __GNUC__ > 4 || defined(__clang__)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user