diff options
| author | Eduard Braun <eduard.braun2@gmx.de> | 2017-07-08 16:39:57 +0000 |
|---|---|---|
| committer | Eduard Braun <eduard.braun2@gmx.de> | 2017-07-08 16:39:57 +0000 |
| commit | 138cbd4d43a5e63b477aae5f310c9c7dcb7c8ecb (patch) | |
| tree | 7fc149ea9d79a3ca16310cddb2370335dbb4526f /src/io | |
| parent | Hackfest Regression: Fix profile_path() not returning the correct directory (diff) | |
| download | inkscape-138cbd4d43a5e63b477aae5f310c9c7dcb7c8ecb.tar.gz inkscape-138cbd4d43a5e63b477aae5f310c9c7dcb7c8ecb.zip | |
Replace deprecated SHGetSpecialFolderLocation with SHGetFolderLocation
Diffstat (limited to 'src/io')
| -rw-r--r-- | src/io/resource.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; { |
