Commit 79cd9183 authored by Alexandre Julliard's avatar Alexandre Julliard

kernel32: Revert incorrect part of commit 7c3529f1.

parent df120334
...@@ -208,9 +208,8 @@ static void PROFILE_Save( HANDLE hFile, const PROFILESECTION *section, ENCODING ...@@ -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));
......
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