regedit: Simplify a while loop for skipping whitespace.

Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hugh McMaster 2017-07-04 12:46:09 +00:00 committed by Alexandre Julliard
parent 50fee455c4
commit 50caf838b6
1 changed files with 1 additions and 1 deletions

View File

@ -506,7 +506,7 @@ static enum reg_versions parse_file_header(const WCHAR *s)
'R','e','g','i','s','t','r','y',' ','E','d','i','t','o','r',' ',
'V','e','r','s','i','o','n',' ','5','.','0','0',0};
while (*s && (*s == ' ' || *s == '\t')) s++;
while (*s == ' ' || *s == '\t') s++;
if (!strcmpW(s, header_31))
return REG_VERSION_31;