server: Prevent unloading a registry hive while the key is in use.
commit70c77cdfee49c44542347b222d77bcb95ba7fdaa
authorAkihiro Sagawa <sagawa.aki@gmail.com>
Fri, 12 Feb 2021 11:30:14 +0000 (12 20:30 +0900)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 17 Feb 2021 21:21:13 +0000 (17 22:21 +0100)
treee866a848e91f268e1ec67dcf9171a619dae0c15d
parentd6d99e59e350de4c7a545059b925acbc33660998
server: Prevent unloading a registry hive while the key is in use.

Otherwise, RegUnLoadKey(HKEY_USERS, "S-1-5-21-0-0-0-1000") erases all
HKCU registry. The call is actually done by a certain installer.

Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
server/registry.c