mirror of
https://github.com/reactos/wine.git
synced 2025-02-23 06:12:31 +00:00
crypt32/tests: Fix a test on win9x.
This commit is contained in:
parent
07c80924eb
commit
846e613b87
@ -1693,8 +1693,10 @@ static void testVerifyCertSig(HCRYPTPROV csp, const CRYPT_DATA_BLOB *toBeSigned,
|
||||
certBlob.pbData = (void *)0xdeadbeef;
|
||||
ret = pCryptVerifyCertificateSignatureEx(csp, X509_ASN_ENCODING,
|
||||
CRYPT_VERIFY_CERT_SIGN_SUBJECT_BLOB, &certBlob, 0, NULL, 0, NULL);
|
||||
ok(!ret && GetLastError() == STATUS_ACCESS_VIOLATION,
|
||||
"Expected STATUS_ACCESS_VIOLATION, got %08x\n", GetLastError());
|
||||
ok(!ret && (GetLastError() == STATUS_ACCESS_VIOLATION ||
|
||||
GetLastError() == CRYPT_E_ASN1_EOD /* Win9x */),
|
||||
"Expected STATUS_ACCESS_VIOLATION or CRYPT_E_ASN1_EOD, got %08x\n", GetLastError());
|
||||
|
||||
certBlob.cbData = size;
|
||||
certBlob.pbData = cert;
|
||||
ret = pCryptVerifyCertificateSignatureEx(csp, X509_ASN_ENCODING,
|
||||
|
Loading…
x
Reference in New Issue
Block a user