[vlc-devel] commit: remove -> utf8_unlink ( Rémi Denis-Courmont )

git version control git at videolan.org
Thu May 7 18:01:30 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu May  7 19:01:20 2009 +0300| [493b65493f4a8ccc830597e7ab08950961c2380e] | committer: Rémi Denis-Courmont 

remove -> utf8_unlink

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

 src/config/file.c   |    2 +-
 src/modules/cache.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/config/file.c b/src/config/file.c
index 24d881c..6acc176 100644
--- a/src/config/file.c
+++ b/src/config/file.c
@@ -682,7 +682,7 @@ static int SaveConfigFile( vlc_object_t *p_this, const char *psz_module_name,
     fclose (file);
 #ifdef WIN32
     /* Windows cannot remove open files nor overwrite existing ones */
-    remove (permanent);
+    utf8_unlink (permanent);
     rename (temporary, permanent);
     vlc_mutex_unlock (&lock);
 #endif
diff --git a/src/modules/cache.c b/src/modules/cache.c
index 6fa84ea..a43a6c3 100644
--- a/src/modules/cache.c
+++ b/src/modules/cache.c
@@ -608,7 +608,7 @@ void CacheSave( vlc_object_t *p_this, module_bank_t *p_bank )
     rename (psz_tmpname, psz_filename); /* atomically replace old cache */
     fclose (file);
 #else
-    remove (psz_filename);
+    utf8_unlink (psz_filename);
     fclose (file);
     rename (psz_tmpname, psz_filename);
 #endif




More information about the vlc-devel mailing list