PlaylistSave.cxx: use FOpen

This commit is contained in:
Denis Krjuchkov 2013-02-02 20:21:46 +06:00
parent 92d71cc7fa
commit 178c6c20cd

View File

@ -78,7 +78,7 @@ spl_save_queue(const char *name_utf8, const struct queue *queue)
if (FileExists(path_fs))
return PLAYLIST_RESULT_LIST_EXISTS;
FILE *file = fopen(path_fs.c_str(), "w");
FILE *file = FOpen(path_fs, FOpenMode::WriteText);
if (file == NULL)
return PLAYLIST_RESULT_ERRNO;