Empty values need to be preserved as empty values and not assumed to

be nonexistent values.
This commit is contained in:
Aric Stewart 2004-04-08 19:06:54 +00:00 committed by Alexandre Julliard
parent d313f20593
commit d1e1bcb9df
1 changed files with 1 additions and 1 deletions

View File

@ -458,7 +458,7 @@ static PROFILESECTION *PROFILE_Load(HANDLE hFile, ENCODING * pEncoding)
if (!(key = HeapAlloc( GetProcessHeap(), 0, sizeof(*key) + len * sizeof(WCHAR) ))) break;
memcpy(key->name, szLineStart, len * sizeof(WCHAR));
key->name[len] = '\0';
if (szValueStart && szValueStart < szLineEnd)
if (szValueStart)
{
len = (int)(szLineEnd - szValueStart);
key->value = HeapAlloc( GetProcessHeap(), 0, (len + 1) * sizeof(WCHAR) );