Paul Vriens : crypt32/tests: Fix a test failure on Win9x.
Alexandre Julliard
julliard at winehq.org
Wed Jun 24 09:22:55 CDT 2009
Module: wine
Branch: master
Commit: c7105f82eed36fd16ee82d73771775e29eb1ec5e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c7105f82eed36fd16ee82d73771775e29eb1ec5e
Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date: Wed Jun 24 08:32:20 2009 +0200
crypt32/tests: Fix a test failure on Win9x.
---
dlls/crypt32/tests/cert.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/crypt32/tests/cert.c b/dlls/crypt32/tests/cert.c
index 1b60b80..415f9c7 100644
--- a/dlls/crypt32/tests/cert.c
+++ b/dlls/crypt32/tests/cert.c
@@ -1854,7 +1854,9 @@ static void testSignAndEncodeCert(void)
ret = CryptSignAndEncodeCertificate(0, 0, X509_ASN_ENCODING,
X509_CERT_TO_BE_SIGNED, &info, &algID, NULL, NULL, &size);
ok(!ret &&
- (GetLastError() == ERROR_INVALID_PARAMETER || GetLastError() == NTE_BAD_ALGID),
+ (GetLastError() == ERROR_INVALID_PARAMETER ||
+ GetLastError() == NTE_BAD_ALGID ||
+ GetLastError() == OSS_BAD_PTR), /* Win9x */
"Expected ERROR_INVALID_PARAMETER or NTE_BAD_ALGID, got %08x\n",
GetLastError());
algID.pszObjId = oid_rsa_md5;
More information about the wine-cvs
mailing list