Commit 7ba508f8 authored by Geoffroy Couprie's avatar Geoffroy Couprie

wince: replace _wrename by MoveFileW

parent 11a8b775
......@@ -463,7 +463,15 @@ int utf8_rename (const char *oldpath, const char *newpath)
#if defined (WIN32)
CONVERT_PATH (oldpath, wold, -1);
CONVERT_PATH (newpath, wnew, -1);
# ifdef UNDER_CE
/* FIXME: errno support */
if (MoveFileW (wold, wnew))
return 0;
else
return -1;
#else
return _wrename (wold, wnew);
#endif
#endif
const char *lo = ToLocale (oldpath);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment