Commit 36a67edd authored by Daniel Lehman's avatar Daniel Lehman Committed by Alexandre Julliard

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

parent dbce559d
...@@ -175,9 +175,12 @@ static DWORD delete_key( HKEY hkey ) ...@@ -175,9 +175,12 @@ static DWORD delete_key( HKEY hkey )
static void setup_main_key(void) static void setup_main_key(void)
{ {
DWORD ret;
if (!RegOpenKeyA( HKEY_CURRENT_USER, "Software\\Wine\\Test", &hkey_main )) delete_key( hkey_main ); 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) static void check_user_privs(void)
......
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