subkey_found did not search for _all_ sub keys.

This commit is contained in:
Marcus Meissner 1999-09-03 12:19:34 +00:00 committed by Alexandre Julliard
parent d083baba24
commit 1c40562bc1
1 changed files with 2 additions and 3 deletions

View File

@ -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;