mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
advapi32/tests: Remove unneeded SetLastError.
This commit is contained in:
parent
16e97ae4b3
commit
04b9f0251c
@ -956,15 +956,12 @@ static void test_reg_open_key(void)
|
||||
RegCloseKey(hkResult);
|
||||
|
||||
/* send in NULL hkResult */
|
||||
SetLastError(0xdeadbeef);
|
||||
ret = RegOpenKeyA(HKEY_CURRENT_USER, "Software\\Wine\\Test", NULL);
|
||||
ok(ret == ERROR_INVALID_PARAMETER, "expected ERROR_INVALID_PARAMETER, got %d\n", ret);
|
||||
|
||||
SetLastError(0xdeadbeef);
|
||||
ret = RegOpenKeyA(HKEY_CURRENT_USER, NULL, NULL);
|
||||
ok(ret == ERROR_INVALID_PARAMETER, "expected ERROR_INVALID_PARAMETER, got %d\n", ret);
|
||||
|
||||
SetLastError(0xdeadbeef);
|
||||
ret = RegOpenKeyA(NULL, NULL, NULL);
|
||||
ok(ret == ERROR_INVALID_PARAMETER, "expected ERROR_INVALID_PARAMETER, got %d\n", ret);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user