mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-29 11:26:48 -05:00
Fixed remove in Windows.
This commit is contained in:
parent
3358efc24a
commit
4e7957ff73
1 changed files with 1 additions and 1 deletions
2
mingw.c
2
mingw.c
|
|
@ -337,7 +337,7 @@ int windows_rename(const char* a, const char* b)
|
||||||
|
|
||||||
int windows_remove(const char* a)
|
int windows_remove(const char* a)
|
||||||
{
|
{
|
||||||
if (!_wremove(u8tou16(a))) {
|
if (_wremove(u8tou16(a)) != 0) {
|
||||||
windows_errno(GetLastError());
|
windows_errno(GetLastError());
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue