crypt32/tests: Fix a test (logical || with non-zero constant).
This commit is contained in:
parent
e2715a6152
commit
bc8716439e
|
@ -5520,7 +5520,8 @@ static void test_decodeCTL(DWORD dwEncoding)
|
|||
SetLastError(0xdeadbeef);
|
||||
ret = pCryptDecodeObjectEx(dwEncoding, PKCS_CTL, ctlWithBogusEntry,
|
||||
sizeof(ctlWithBogusEntry), CRYPT_DECODE_ALLOC_FLAG, NULL, &buf, &size);
|
||||
ok(!ret && (GetLastError() == CRYPT_E_ASN1_EOD || CRYPT_E_ASN1_CORRUPT),
|
||||
ok(!ret &&
|
||||
(GetLastError() == CRYPT_E_ASN1_EOD || GetLastError() == CRYPT_E_ASN1_CORRUPT),
|
||||
"expected CRYPT_E_ASN1_EOD or CRYPT_E_ASN1_CORRUPT, got %08x\n",
|
||||
GetLastError());
|
||||
info.SubjectAlgorithm.Parameters.cbData = 0;
|
||||
|
|
Loading…
Reference in New Issue