Commit 057d5be9 authored by Jehan's avatar Jehan

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.
parent 10432164
......@@ -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)
gchar *retval = NULL;
hr = SHGetFolderLocation (NULL, csidl, NULL, 0, &pidl);
hr = SHGetSpecialFolderLocation (NULL, csidl, &pidl);
if (hr == S_OK)
b = SHGetPathFromIDListW (pidl, path);
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