mirror of
git://source.winehq.org/git/wine.git
synced 2024-08-31 10:14:06 +00:00
regedit: Add missing fclose on file import.
This commit is contained in:
parent
4ef4777630
commit
d1e02c169d
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue