commit | 0c86432ea5e297995b54cb0d5ff01e5f99572e7e | [log] [tgz] |
---|---|---|
author | Martin Pilka <mpilka@codeweavers.com> | Tue Dec 12 00:34:44 2000 +0000 |
committer | Alexandre Julliard <julliard@winehq.org> | Tue Dec 12 00:34:44 2000 +0000 |
tree | b8e0a2e349168923e6ff06b1018b9eb596b3f498 | |
parent | becb9a353bea89fe8a9ccb3aff1a629fd73aad42 [diff] |
Changed the condition so it also works in case when sscanf returns EOF.
diff --git a/server/registry.c b/server/registry.c index 3375e50..e593903 100644 --- a/server/registry.c +++ b/server/registry.c
@@ -1086,7 +1086,7 @@ 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--; }