mirror of https://github.com/GNOME/gimp.git
Bug 688316 - get_special_folder reverted to exact same implementation as glib.
I used SHGetFolderLocation, deprecated, which I thought was a better idea than SHGetSpecialFolderLocation, deprecated as well, but also unsupported. But it apparently won't compile on XP. Reverts back to glib exact copy.
This commit is contained in:
parent
1043216424
commit
057d5be970
|
@ -291,7 +291,7 @@ gimp_directory (void)
|
|||
|
||||
#ifdef G_OS_WIN32
|
||||
|
||||
/* Taken and slightly modified from glib 2.34.0 code. */
|
||||
/* Taken from glib 2.35 code. */
|
||||
static gchar *
|
||||
get_special_folder (int csidl)
|
||||
{
|
||||
|
@ -301,7 +301,7 @@ get_special_folder (int csidl)
|
|||
BOOL b;
|
||||
gchar *retval = NULL;
|
||||
|
||||
hr = SHGetFolderLocation (NULL, csidl, NULL, 0, &pidl);
|
||||
hr = SHGetSpecialFolderLocation (NULL, csidl, &pidl);
|
||||
if (hr == S_OK)
|
||||
{
|
||||
b = SHGetPathFromIDListW (pidl, path);
|
||||
|
|
Loading…
Reference in New Issue