Commit 9d8178b9 authored by Geoffroy Couprie's avatar Geoffroy Couprie Committed by Jean-Baptiste Kempf

wince: replace _wrename by MoveFileW

(cherry picked from commit 7ba508f8)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 91116db9
......@@ -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