mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
Close the key only if we have opened it (it's not the case when the subkey name is empty)
svn path=/trunk/; revision=20324
This commit is contained in:
@@ -433,10 +433,10 @@ static BOOL registry_callback( HINF hinf, PCWSTR field, void *arg )
|
||||
/* and now do it */
|
||||
if (!do_reg_operation( hkey, buffer, &context, flags ))
|
||||
{
|
||||
RegCloseKey( hkey );
|
||||
if (hkey != root_key) RegCloseKey( hkey );
|
||||
return FALSE;
|
||||
}
|
||||
RegCloseKey( hkey );
|
||||
if (hkey != root_key) RegCloseKey( hkey );
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user