Commit d1e1bcb9 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

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

be nonexistent values.
parent d313f205
......@@ -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) );
......
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