wintrust/tests: Fix failing test on win8.
This commit is contained in:
parent
868e009e79
commit
a27a1214a2
|
@ -551,7 +551,9 @@ static void test_CryptCATAdminAddRemoveCatalog(void)
|
||||||
hcatinfo = pCryptCATAdminAddCatalog(hcatadmin, tmpfileW, basenameW, 1);
|
hcatinfo = pCryptCATAdminAddCatalog(hcatadmin, tmpfileW, basenameW, 1);
|
||||||
error = GetLastError();
|
error = GetLastError();
|
||||||
ok(hcatinfo == NULL, "CryptCATAdminAddCatalog succeeded\n");
|
ok(hcatinfo == NULL, "CryptCATAdminAddCatalog succeeded\n");
|
||||||
ok(error == ERROR_INVALID_PARAMETER, "got %u expected ERROR_INVALID_PARAMETER\n", GetLastError());
|
ok(error == ERROR_INVALID_PARAMETER ||
|
||||||
|
error == ERROR_BAD_FORMAT, /* win 8 */
|
||||||
|
"got %u\n", GetLastError());
|
||||||
|
|
||||||
SetLastError(0xdeadbeef);
|
SetLastError(0xdeadbeef);
|
||||||
hcatinfo = pCryptCATAdminAddCatalog(hcatadmin, tmpfileW, NULL, 0);
|
hcatinfo = pCryptCATAdminAddCatalog(hcatadmin, tmpfileW, NULL, 0);
|
||||||
|
|
Loading…
Reference in New Issue