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);
|
RegCloseKey(hkResult);
|
||||||
|
|
||||||
/* send in NULL hkResult */
|
/* send in NULL hkResult */
|
||||||
SetLastError(0xdeadbeef);
|
|
||||||
ret = RegOpenKeyA(HKEY_CURRENT_USER, "Software\\Wine\\Test", NULL);
|
ret = RegOpenKeyA(HKEY_CURRENT_USER, "Software\\Wine\\Test", NULL);
|
||||||
ok(ret == ERROR_INVALID_PARAMETER, "expected ERROR_INVALID_PARAMETER, got %d\n", ret);
|
ok(ret == ERROR_INVALID_PARAMETER, "expected ERROR_INVALID_PARAMETER, got %d\n", ret);
|
||||||
|
|
||||||
SetLastError(0xdeadbeef);
|
|
||||||
ret = RegOpenKeyA(HKEY_CURRENT_USER, NULL, NULL);
|
ret = RegOpenKeyA(HKEY_CURRENT_USER, NULL, NULL);
|
||||||
ok(ret == ERROR_INVALID_PARAMETER, "expected ERROR_INVALID_PARAMETER, got %d\n", ret);
|
ok(ret == ERROR_INVALID_PARAMETER, "expected ERROR_INVALID_PARAMETER, got %d\n", ret);
|
||||||
|
|
||||||
SetLastError(0xdeadbeef);
|
|
||||||
ret = RegOpenKeyA(NULL, NULL, NULL);
|
ret = RegOpenKeyA(NULL, NULL, NULL);
|
||||||
ok(ret == ERROR_INVALID_PARAMETER, "expected ERROR_INVALID_PARAMETER, got %d\n", ret);
|
ok(ret == ERROR_INVALID_PARAMETER, "expected ERROR_INVALID_PARAMETER, got %d\n", ret);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue