Can't pass NULL as default value to GetPrivateProfileString.

This commit is contained in:
Ge van Geldorp 2004-10-04 19:05:02 +00:00 committed by Alexandre Julliard
parent ef8ba283b8
commit 3db9386195
1 changed files with 3 additions and 1 deletions

View File

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