[vlc-devel] commit: Use utf8_unlink ( Rémi Denis-Courmont )
git version control
git at videolan.org
Mon Jan 25 19:31:20 CET 2010
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Jan 25 20:29:32 2010 +0200| [739dbd4963e0fa42c25c0b87282045d274362039] | committer: Rémi Denis-Courmont
Use utf8_unlink
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=739dbd4963e0fa42c25c0b87282045d274362039
---
src/modules/cache.c | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
diff --git a/src/modules/cache.c b/src/modules/cache.c
index 0c8b616..dbd0e6d 100644
--- a/src/modules/cache.c
+++ b/src/modules/cache.c
@@ -102,14 +102,8 @@ void CacheLoad( vlc_object_t *p_this, module_bank_t *p_bank, bool b_delete )
if( b_delete )
{
-#if !defined( UNDER_CE )
- unlink( psz_filename );
-#else
- wchar_t psz_wf[MAX_PATH];
- MultiByteToWideChar( CP_ACP, 0, psz_filename, -1, psz_wf, MAX_PATH );
- DeleteFile( psz_wf );
-#endif
msg_Dbg( p_this, "removing plugins cache file %s", psz_filename );
+ utf8_unlink( psz_filename );
free( psz_filename );
return;
}
More information about the vlc-devel
mailing list