regedit: Remove a redundant NULL check before HeapFree().
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
ba0afd26e7
commit
a9987fa11a
|
@ -1564,9 +1564,7 @@ BOOL import_registry_file(FILE *reg_file)
|
||||||
if (parser.reg_version == REG_VERSION_FUZZY || parser.reg_version == REG_VERSION_INVALID)
|
if (parser.reg_version == REG_VERSION_FUZZY || parser.reg_version == REG_VERSION_INVALID)
|
||||||
return parser.reg_version == REG_VERSION_FUZZY;
|
return parser.reg_version == REG_VERSION_FUZZY;
|
||||||
|
|
||||||
if (parser.value_name)
|
|
||||||
HeapFree(GetProcessHeap(), 0, parser.value_name);
|
HeapFree(GetProcessHeap(), 0, parser.value_name);
|
||||||
|
|
||||||
close_key(&parser);
|
close_key(&parser);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
Loading…
Reference in New Issue