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:
Jehan 2013-01-23 15:38:21 +09:00
parent 1043216424
commit 057d5be970
1 changed files with 2 additions and 2 deletions

View File

@ -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);