advapi32/tests: Don't call function in assert().

Signed-off-by: Daniel Lehman <dlehman@esri.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Daniel Lehman 2018-04-28 13:02:08 -07:00 committed by Alexandre Julliard
parent dbce559df6
commit 36a67edd1e
1 changed files with 4 additions and 1 deletions

View File

@ -175,9 +175,12 @@ static DWORD delete_key( HKEY hkey )
static void setup_main_key(void)
{
DWORD ret;
if (!RegOpenKeyA( HKEY_CURRENT_USER, "Software\\Wine\\Test", &hkey_main )) delete_key( hkey_main );
assert (!RegCreateKeyA( HKEY_CURRENT_USER, "Software\\Wine\\Test", &hkey_main ));
ret = RegCreateKeyA( HKEY_CURRENT_USER, "Software\\Wine\\Test", &hkey_main );
ok(ret == ERROR_SUCCESS, "expected ERROR_SUCCESS, got %d\n", ret);
}
static void check_user_privs(void)