crypt32/tests: Fix a test (logical || with non-zero constant).

This commit is contained in:
Paul Vriens 2009-06-23 07:49:27 +02:00 committed by Alexandre Julliard
parent e2715a6152
commit bc8716439e
1 changed files with 2 additions and 1 deletions

View File

@ -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;