Commit 3db93861 authored by Ge van Geldorp's avatar Ge van Geldorp Committed by Alexandre Julliard

Can't pass NULL as default value to GetPrivateProfileString.

parent ef8ba283
......@@ -98,11 +98,13 @@ BOOL SHELL32_GetCustomFolderAttribute(
WCHAR wszDesktopIniPath[MAX_PATH];
static const WCHAR wszDesktopIni[] =
{'d','e','s','k','t','o','p','.','i','n','i',0};
static const WCHAR wszDefault[] =
{0};
if (!SHGetPathFromIDListW(pidl, wszDesktopIniPath))
return FALSE;
PathAppendW(wszDesktopIniPath, wszDesktopIni);
ret = GetPrivateProfileStringW(pwszHeading, pwszAttribute,
NULL, pwszValue, cchValue, wszDesktopIniPath);
wszDefault, pwszValue, cchValue, wszDesktopIniPath);
if (!ret) return FALSE;
return TRUE;
}
......
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