PlaylistSave.cxx: use FOpen
This commit is contained in:
parent
92d71cc7fa
commit
178c6c20cd
@ -78,7 +78,7 @@ spl_save_queue(const char *name_utf8, const struct queue *queue)
|
|||||||
if (FileExists(path_fs))
|
if (FileExists(path_fs))
|
||||||
return PLAYLIST_RESULT_LIST_EXISTS;
|
return PLAYLIST_RESULT_LIST_EXISTS;
|
||||||
|
|
||||||
FILE *file = fopen(path_fs.c_str(), "w");
|
FILE *file = FOpen(path_fs, FOpenMode::WriteText);
|
||||||
|
|
||||||
if (file == NULL)
|
if (file == NULL)
|
||||||
return PLAYLIST_RESULT_ERRNO;
|
return PLAYLIST_RESULT_ERRNO;
|
||||||
|
Loading…
Reference in New Issue
Block a user