wintrust: Fix a couple tests on a variety of systems.
This commit is contained in:
parent
22ea6bd611
commit
74ac0d30bd
|
@ -120,8 +120,10 @@ static void test_AddRem_ActionID(void)
|
||||||
SetLastError(0xdeadbeef);
|
SetLastError(0xdeadbeef);
|
||||||
ret = pWintrustAddActionID(&ActionID, 0, &ActionIDFunctions);
|
ret = pWintrustAddActionID(&ActionID, 0, &ActionIDFunctions);
|
||||||
ok (ret, "Expected WintrustAddActionID to succeed.\n");
|
ok (ret, "Expected WintrustAddActionID to succeed.\n");
|
||||||
ok (GetLastError() == ERROR_INVALID_PARAMETER,
|
ok (GetLastError() == ERROR_INVALID_PARAMETER ||
|
||||||
"Expected ERROR_INVALID_PARAMETER, got %u.\n", GetLastError());
|
GetLastError() == ERROR_ACCESS_DENIED,
|
||||||
|
"Expected ERROR_INVALID_PARAMETER or ERROR_ACCESS_DENIED, got %u.\n",
|
||||||
|
GetLastError());
|
||||||
|
|
||||||
/* All OK and all functions are correctly defined. The DLL and entrypoints
|
/* All OK and all functions are correctly defined. The DLL and entrypoints
|
||||||
* are not present.
|
* are not present.
|
||||||
|
@ -139,8 +141,9 @@ static void test_AddRem_ActionID(void)
|
||||||
SetLastError(0xdeadbeef);
|
SetLastError(0xdeadbeef);
|
||||||
ret = pWintrustAddActionID(&ActionID, 0, &ActionIDFunctions);
|
ret = pWintrustAddActionID(&ActionID, 0, &ActionIDFunctions);
|
||||||
ok (ret, "Expected WintrustAddActionID to succeed.\n");
|
ok (ret, "Expected WintrustAddActionID to succeed.\n");
|
||||||
ok (GetLastError() == 0xdeadbeef,
|
ok (GetLastError() == 0xdeadbeef || GetLastError() == ERROR_ACCESS_DENIED,
|
||||||
"Expected 0xdeadbeef, got %u.\n", GetLastError());
|
"Expected 0xdeadbeef or ERROR_ACCESS_DENIED, got %u.\n",
|
||||||
|
GetLastError());
|
||||||
|
|
||||||
SetLastError(0xdeadbeef);
|
SetLastError(0xdeadbeef);
|
||||||
ret = pWintrustRemoveActionID(&ActionID);
|
ret = pWintrustRemoveActionID(&ActionID);
|
||||||
|
|
Loading…
Reference in New Issue