From 79cd9183e810aab7f94ad5bbcf11406d27d16a94 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 25 Mar 2009 14:19:02 +0100 Subject: [PATCH] kernel32: Revert incorrect part of commit 7c3529f1cc6a3ce6f0a403c337926c8fc9fbfc57. --- dlls/kernel32/profile.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dlls/kernel32/profile.c b/dlls/kernel32/profile.c index 5d563a5b7fb..d44e819af3b 100644 --- a/dlls/kernel32/profile.c +++ b/dlls/kernel32/profile.c @@ -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));