Commit 493b6549 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

remove -> utf8_unlink

parent 1a24f157
...@@ -682,7 +682,7 @@ static int SaveConfigFile( vlc_object_t *p_this, const char *psz_module_name, ...@@ -682,7 +682,7 @@ static int SaveConfigFile( vlc_object_t *p_this, const char *psz_module_name,
fclose (file); fclose (file);
#ifdef WIN32 #ifdef WIN32
/* Windows cannot remove open files nor overwrite existing ones */ /* Windows cannot remove open files nor overwrite existing ones */
remove (permanent); utf8_unlink (permanent);
rename (temporary, permanent); rename (temporary, permanent);
vlc_mutex_unlock (&lock); vlc_mutex_unlock (&lock);
#endif #endif
......
...@@ -608,7 +608,7 @@ void CacheSave( vlc_object_t *p_this, module_bank_t *p_bank ) ...@@ -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 */ rename (psz_tmpname, psz_filename); /* atomically replace old cache */
fclose (file); fclose (file);
#else #else
remove (psz_filename); utf8_unlink (psz_filename);
fclose (file); fclose (file);
rename (psz_tmpname, psz_filename); rename (psz_tmpname, psz_filename);
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment