Changed the condition so it also works in case when sscanf returns EOF.

This commit is contained in:
Martin Pilka 2000-12-12 00:34:44 +00:00 committed by Alexandre Julliard
parent becb9a353b
commit 0c86432ea5
1 changed files with 1 additions and 1 deletions

View File

@ -1086,7 +1086,7 @@ static struct key *load_key( struct key *base, const char *buffer, unsigned int
file_read_error( "Malformed key", info );
return NULL;
}
if (!sscanf( buffer + res, " %d", &modif )) modif = time(NULL);
if (sscanf( buffer + res, " %d", &modif ) != 1) modif = time(NULL);
p = (WCHAR *)info->tmp;
while (prefix_len && *p) { if (*p++ == '\\') prefix_len--; }