Commit 0c86432e authored by Martin Pilka's avatar Martin Pilka Committed by Alexandre Julliard

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

parent becb9a35
......@@ -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--; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment