From 138cbd4d43a5e63b477aae5f310c9c7dcb7c8ecb Mon Sep 17 00:00:00 2001 From: Eduard Braun Date: Sat, 8 Jul 2017 18:39:57 +0200 Subject: Replace deprecated SHGetSpecialFolderLocation with SHGetFolderLocation --- src/io/resource.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/io/resource.cpp b/src/io/resource.cpp index 4610efd46..dfb851d58 100644 --- a/src/io/resource.cpp +++ b/src/io/resource.cpp @@ -278,10 +278,10 @@ char *profile_path(const char *filename) #ifdef WIN32 // prefer c:\Documents and Settings\UserName\Application Data\ to c:\Documents and Settings\userName\; // TODO: CSIDL_APPDATA is C:\Users\UserName\AppData\Roaming these days - // should we switch to AppData\Local? Then we can simply use the portable g_get_user_config_dir() + // should we migrate to AppData\Local? Then we can simply use the portable g_get_user_config_dir() if (!prefdir) { ITEMIDLIST *pidl = 0; - if ( SHGetSpecialFolderLocation( NULL, CSIDL_APPDATA, &pidl ) == NOERROR ) { + if ( SHGetFolderLocation( NULL, CSIDL_APPDATA, NULL, 0, &pidl ) == S_OK ) { gchar * utf8Path = NULL; { -- cgit v1.2.3