Commit 7913a116 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

ConfigDir mess up on windows.

(cherry picked from commit ec2e9e01)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent eacb9a15
...@@ -87,8 +87,8 @@ static const char *GetDir( bool b_appdata, bool b_common_appdata ) ...@@ -87,8 +87,8 @@ static const char *GetDir( bool b_appdata, bool b_common_appdata )
# else # else
/* Get the "Application Data" folder for the current user */ /* Get the "Application Data" folder for the current user */
if( S_OK == SHGetFolderPathW( NULL, if( S_OK == SHGetFolderPathW( NULL,
(b_appdata ? CSIDL_APPDATA : ( b_appdata ? CSIDL_APPDATA :
(b_common_appdata ? CSIDL_PERSONAL : CSIDL_COMMON_APPDATA)) ( b_common_appdata ? CSIDL_COMMON_APPDATA: CSIDL_PERSONAL ) )
| CSIDL_FLAG_CREATE, | CSIDL_FLAG_CREATE,
NULL, SHGFP_TYPE_CURRENT, wdir ) ) NULL, SHGFP_TYPE_CURRENT, wdir ) )
# 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