Commit d1e02c16 authored by Alexander Nicolaysen Sørnes's avatar Alexander Nicolaysen Sørnes Committed by Alexandre Julliard

regedit: Add missing fclose on file import.

parent 4ef47776
......@@ -313,12 +313,18 @@ static BOOL InitOpenFileName(HWND hWnd, OPENFILENAME *pofn)
static BOOL import_registry_filename(LPTSTR filename)
{
BOOL Success;
FILE* reg_file = fopen(filename, "r");
if(!reg_file)
return FALSE;
return import_registry_file(reg_file);
Success = import_registry_file(reg_file);
if(fclose(reg_file) != 0)
Success = FALSE;
return Success;
}
static BOOL ImportRegistryFile(HWND hWnd)
......
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