Author: janderwald
Date: Wed Jul 2 08:40:49 2008
New Revision: 34259
URL:
http://svn.reactos.org/svn/reactos?rev=34259&view=rev
Log:
- 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+
Modified:
trunk/reactos/dll/win32/kernel32/misc/profile.c
Modified: trunk/reactos/dll/win32/kernel32/misc/profile.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/misc/pr…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/misc/profile.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/misc/profile.c [iso-8859-1] Wed Jul 2 08:40:49 2008
@@ -435,7 +435,7 @@
/* 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;