faultrep/tests: Check for registry virtualization.
commit425098974a83c2646acfeff656cf9eada3d73c20
authorAlex Henrie <alexhenrie24@gmail.com>
Sun, 2 Jan 2022 07:11:44 +0000 (2 00:11 -0700)
committerAlexandre Julliard <julliard@winehq.org>
Sun, 2 Jan 2022 20:26:17 +0000 (2 21:26 +0100)
tree3428a9a0fef13b295e29c56410cd491df8b0de16
parente69d218d57b92790f82f988dbe568076ca04c07a
faultrep/tests: Check for registry virtualization.

If registry virtualization is enabled, AddERExcludedApplicationA
succeeds on Windows 8 even if the user does not really have permission
to write to HKLM\Software. The behind-the-scenes writes to HLKM\Software
are treated like any other writes: They are silently redirected to
HKCU\Software\Classes\VirtualStore\Machine\Software. Since
AddERExcludedApplicationA still fails even with registry virtualization
enabled on Vista, 7, and 10, Windows 8's behavior is clearly broken.

Fixes a testbot failure on 32-bit Windows 8 with a non-elevated
administrator account.

Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/faultrep/tests/faultrep.c