From 284853b90ba26850b4f9e32dabb1751a15db83c0 Mon Sep 17 00:00:00 2001 From: Johannes Anderwald Date: Wed, 2 Jul 2008 13:40:49 +0000 Subject: [PATCH] - don't trim spaces at the end of a value as it might be part of the value - fixes the boot menu timeout text disalignment from bug 3437 - behaviour verified with Microsoft Windows Vista SP2+ svn path=/trunk/; revision=34259 --- reactos/dll/win32/kernel32/misc/profile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/dll/win32/kernel32/misc/profile.c b/reactos/dll/win32/kernel32/misc/profile.c index b735feb7f0d..810b159af83 100644 --- a/reactos/dll/win32/kernel32/misc/profile.c +++ b/reactos/dll/win32/kernel32/misc/profile.c @@ -435,7 +435,7 @@ static PROFILESECTION *PROFILE_Load(HANDLE hFile, ENCODING * pEncoding) /* get rid of white space */ while (szLineStart < szLineEnd && PROFILE_isspaceW(*szLineStart)) szLineStart++; - while ((szLineEnd > szLineStart) && ((szLineEnd[-1] == '\n') || PROFILE_isspaceW(szLineEnd[-1]))) szLineEnd--; + while ((szLineEnd > szLineStart) && ((szLineEnd[-1] == '\n') || (PROFILE_isspaceW(szLineEnd[-1]) && szLineEnd[-1] != ' '))) szLineEnd--; if (szLineStart >= szLineEnd) continue;