Commit 1c40562b authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

subkey_found did not search for _all_ sub keys.

parent d083baba
......@@ -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;
......
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