- 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
This commit is contained in:
Johannes Anderwald 2008-07-02 13:40:49 +00:00
parent fc3136e93d
commit 284853b90b

View file

@ -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;