1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-24 00:23:27 +00:00

win32: fix desktop directory

The folder argument wasn't used, so it always returned the APPDATA dir.
This commit is contained in:
wm4 2015-05-03 19:28:14 +02:00
parent e25ecdd09a
commit a2da53027b

View File

@ -51,7 +51,7 @@ static char *mp_get_win_shell_dir(void *talloc_ctx, int folder)
{
wchar_t w_appdir[MAX_PATH + 1] = {0};
if (SHGetFolderPathW(NULL, CSIDL_APPDATA|CSIDL_FLAG_CREATE, NULL,
if (SHGetFolderPathW(NULL, folder|CSIDL_FLAG_CREATE, NULL,
SHGFP_TYPE_CURRENT, w_appdir) != S_OK)
return NULL;