kernel32: Revert incorrect part of commit 7c3529f1cc6a3ce6f0a403c337926c8fc9fbfc57.

This commit is contained in:
Alexandre Julliard 2009-03-25 14:19:02 +01:00
parent df1203342c
commit 79cd9183e8

View File

@ -208,9 +208,8 @@ static void PROFILE_Save( HANDLE hFile, const PROFILESECTION *section, ENCODING
for (key = section->key; key; key = key->next) for (key = section->key; key; key = key->next)
{ {
len += strlenW(key->name); len += strlenW(key->name) + 2;
if (key->value && key->value[0]) len += strlenW(key->value); if (key->value) len += strlenW(key->value) + 1;
len += 3; /* '=' and "\r\n" */
} }
buffer = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR)); buffer = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR));