kernel32: Revert incorrect part of commit 7c3529f1cc.

This commit is contained in:
Alexandre Julliard 2009-03-25 14:19:02 +01:00
parent df1203342c
commit 79cd9183e8
1 changed files with 2 additions and 3 deletions

View File

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