mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-02 13:27:35 +00:00
wintrust: Add some extra tests for WintrustRemoveActionID.
This commit is contained in:
parent
6eea50394e
commit
dce0d05e83
1 changed files with 22 additions and 2 deletions
|
@ -130,7 +130,7 @@ static void test_AddRem_ActionID(void)
|
|||
todo_wine
|
||||
{
|
||||
ok (ret, "Expected WintrustAddActionID to succeed.\n");
|
||||
ok (GetLastError() == ERROR_INVALID_PARAMETER /* W2K */,
|
||||
ok (GetLastError() == ERROR_INVALID_PARAMETER,
|
||||
"Expected ERROR_INVALID_PARAMETER, got %ld.\n", GetLastError());
|
||||
}
|
||||
|
||||
|
@ -152,7 +152,7 @@ static void test_AddRem_ActionID(void)
|
|||
todo_wine
|
||||
{
|
||||
ok (ret, "Expected WintrustAddActionID to succeed.\n");
|
||||
ok (GetLastError() == 0xdeadbeef /* W2K */,
|
||||
ok (GetLastError() == 0xdeadbeef,
|
||||
"Expected 0xdeadbeef, got %ld.\n", GetLastError());
|
||||
}
|
||||
|
||||
|
@ -163,6 +163,26 @@ static void test_AddRem_ActionID(void)
|
|||
ok ( ret, "WintrustRemoveActionID failed : 0x%08lx\n", GetLastError());
|
||||
ok ( GetLastError() == 0xdeadbeef, "Last error should not have been changed: 0x%08lx\n", GetLastError());
|
||||
}
|
||||
|
||||
/* NULL input */
|
||||
SetLastError(0xdeadbeef);
|
||||
ret = pWintrustRemoveActionID(NULL);
|
||||
todo_wine
|
||||
{
|
||||
ok (ret, "Expected WintrustRemoveActionID to succeed.\n");
|
||||
ok (GetLastError() == ERROR_INVALID_PARAMETER,
|
||||
"Expected ERROR_INVALID_PARAMETER, got %ld.\n", GetLastError());
|
||||
}
|
||||
|
||||
/* The passed GUID is removed by a previous call, so it's basically a test with a non-existent Trust provider */
|
||||
SetLastError(0xdeadbeef);
|
||||
ret = pWintrustRemoveActionID(&ActionID);
|
||||
todo_wine
|
||||
{
|
||||
ok (ret, "Expected WintrustRemoveActionID to succeed.\n");
|
||||
ok (GetLastError() == 0xdeadbeef,
|
||||
"Expected 0xdeadbeef, got %ld.\n", GetLastError());
|
||||
}
|
||||
}
|
||||
|
||||
START_TEST(register)
|
||||
|
|
Loading…
Reference in a new issue