summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-05-03 19:28:14 +0200
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>2015-05-07 10:46:15 +0900
commitf56a7af9f696aab7f4095f282f22dcbe7c758c9e (patch)
tree709186883810b0c27447fcdd9ec299921742890b
parent90ba8040d9819fd885430c7d56b77cdb6c22199b (diff)
downloadmpv-f56a7af9f696aab7f4095f282f22dcbe7c758c9e.tar.bz2
mpv-f56a7af9f696aab7f4095f282f22dcbe7c758c9e.tar.xz
win32: fix desktop directory
The folder argument wasn't used, so it always returned the APPDATA dir. (cherry picked from commit a2da53027b3fcb232121c38e79d7daae651f099d)
-rw-r--r--osdep/path-win.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/osdep/path-win.c b/osdep/path-win.c
index 26f7ffa62e..f22b8a3e84 100644
--- a/osdep/path-win.c
+++ b/osdep/path-win.c
@@ -51,7 +51,7 @@ static char *mp_get_win_app_dir(void *talloc_ctx)
{
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;