]> git.sesse.net Git - vlc/commitdiff
wince: replace _wrename by MoveFileW
authorGeoffroy Couprie <geo.couprie@gmail.com>
Wed, 13 May 2009 14:50:53 +0000 (16:50 +0200)
committerGeoffroy Couprie <geo.couprie@gmail.com>
Wed, 13 May 2009 14:50:53 +0000 (16:50 +0200)
src/text/filesystem.c

index 7b93bebbabac6d8dc2505ebf3dd9d83b66c13e59..bc602ae5f366c3511e74af4cf750a67a4d37efca 100644 (file)
@@ -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);