From 4e7957ff732ea1e474c0202ee2f3ab5dbef41c9a Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Thu, 25 Aug 2011 19:27:48 +0200 Subject: [PATCH] Fixed remove in Windows. --- mingw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mingw.c b/mingw.c index 2512fc82..90b93053 100644 --- a/mingw.c +++ b/mingw.c @@ -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; }