[vlc-devel] commit: wince: replace _wrename by MoveFileW (Geoffroy Couprie )
git version control
git at videolan.org
Wed May 13 16:51:50 CEST 2009
vlc | branch: master | Geoffroy Couprie <geo.couprie at gmail.com> | Wed May 13 16:50:53 2009 +0200| [7ba508f8ef84047d1c1ed06ac0f3596e0ea1019d] | committer: Geoffroy Couprie
wince: replace _wrename by MoveFileW
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7ba508f8ef84047d1c1ed06ac0f3596e0ea1019d
---
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