[WINESYNC] setupapi: Recursively remove any subkeys before calling NtDeleteKey().

Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>

wine commit id c9308b8d6b1e2f4dd39b19a6890423cd42fd4620 by Hugh McMaster <hugh.mcmaster@outlook.com>
This commit is contained in:
winesync 2024-01-05 21:08:49 +01:00 committed by Hermès Bélusca-Maïto
parent 4aaaa0687d
commit 0498aefcc0
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
2 changed files with 6 additions and 2 deletions

View file

@ -331,7 +331,11 @@ static BOOL do_reg_operation( HKEY hkey, const WCHAR *value, INFCONTEXT *context
}
else RegDeleteValueW( hkey, value );
}
else NtDeleteKey( hkey );
else
{
RegDeleteTreeW( hkey, NULL );
NtDeleteKey( hkey );
}
return TRUE;
}

View file

@ -5,4 +5,4 @@ files:
dlls/setupapi/misc.c: dll/win32/setupapi/misc.c
dlls/setupapi/stubs.c: dll/win32/setupapi/stubs.c
tags:
wine: e4645d60d72a9fbfbd745e275d4f90110bdceb4d
wine: c9308b8d6b1e2f4dd39b19a6890423cd42fd4620