mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 13:16:07 +00:00
- 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:
parent
fc3136e93d
commit
284853b90b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue