1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-08 11:56:11 +00:00

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

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