[vlc-devel] commit: wince: replace _wrename by MoveFileW (Geoffroy Couprie )

git version control git at videolan.org
Thu May 14 23:21:13 CEST 2009


vlc | branch: master | Geoffroy Couprie <geo.couprie at gmail.com> | Wed May 13 16:50:53 2009 +0200| [9d8178b9171e367d44d94ad02ae9fcb9af3a2449] | committer: Jean-Baptiste Kempf 

wince: replace _wrename by MoveFileW
(cherry picked from commit 7ba508f8ef84047d1c1ed06ac0f3596e0ea1019d)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9d8178b9171e367d44d94ad02ae9fcb9af3a2449
---

 src/text/filesystem.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/text/filesystem.c b/src/text/filesystem.c
index 7b93beb..bc602ae 100644
--- a/src/text/filesystem.c
+++ b/src/text/filesystem.c
@@ -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);




More information about the vlc-devel mailing list