Fixed remove in Windows.

This commit is contained in:
Andrea Mazzoleni 2011-08-25 19:27:48 +02:00
parent 3358efc24a
commit 4e7957ff73

View file

@ -337,7 +337,7 @@ int windows_rename(const char* a, const char* b)
int windows_remove(const char* a)
{
if (!_wremove(u8tou16(a))) {
if (_wremove(u8tou16(a)) != 0) {
windows_errno(GetLastError());
return -1;
}