Commit c6161ac6 authored by David Elliott's avatar David Elliott Committed by Alexandre Julliard

_nt_parse_nk() should not close keys that it does not open.

parent 78767e6d
......@@ -746,7 +746,10 @@ static int _nt_parse_nk(HKEY hkey, char * base, nt_nk * nk, int level)
if (!_nt_parse_vk(subkey, base, vk)) goto error1;
}
RegCloseKey(subkey);
/* Don't close the subkey if it is the hkey that was passed
* (i.e. Level was <= 0)
*/
if( subkey!=hkey ) RegCloseKey(subkey);
return TRUE;
error1: RegCloseKey(subkey);
......
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