subkey_found did not search for _all_ sub keys.
This commit is contained in:
parent
d083baba24
commit
1c40562bc1
|
@ -433,11 +433,10 @@ static LPKEYSTRUCT lookup_hkey( HKEY hkey )
|
|||
*/
|
||||
static int subkey_found(LPKEYSTRUCT lpcurrkey, LPKEYSTRUCT lpkey_to_find)
|
||||
{
|
||||
if (lpcurrkey == lpkey_to_find)
|
||||
return 1;
|
||||
|
||||
while (lpcurrkey)
|
||||
{
|
||||
if (lpcurrkey == lpkey_to_find)
|
||||
return 1;
|
||||
if (subkey_found(lpcurrkey->nextsub, lpkey_to_find))
|
||||
return 1;
|
||||
|
||||
|
|
Loading…
Reference in New Issue