[ros-diffs] [janderwald] 34259: - 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+
janderwald at svn.reactos.org
janderwald at svn.reactos.org
Wed Jul 2 15:40:49 CEST 2008
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/profile.c?rev=34259&r1=34258&r2=34259&view=diff
==============================================================================
--- 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;
More information about the Ros-diffs
mailing list