[PATCH 6/6] Skip some tests on WinMe to avoid a crash
Paul Vriens
Paul.Vriens.Wine at gmail.com
Fri Oct 2 04:09:31 CDT 2009
---
dlls/secur32/tests/schannel.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/dlls/secur32/tests/schannel.c b/dlls/secur32/tests/schannel.c
index 167a0b4..82e27db 100644
--- a/dlls/secur32/tests/schannel.c
+++ b/dlls/secur32/tests/schannel.c
@@ -210,8 +210,15 @@ static void testAcquireSecurityContext(void)
certs[1] = pCertCreateCertificateContext(X509_ASN_ENCODING, selfSignedCert,
sizeof(selfSignedCert));
- pCryptAcquireContextW(&csp, cspNameW, MS_DEF_PROV_W, PROV_RSA_FULL,
+ SetLastError(0xdeadbeef);
+ ret = pCryptAcquireContextW(&csp, cspNameW, MS_DEF_PROV_W, PROV_RSA_FULL,
CRYPT_DELETEKEYSET);
+ if (!ret && GetLastError() == ERROR_CALL_NOT_IMPLEMENTED)
+ {
+ /* WinMe would crash on some tests */
+ win_skip("CryptAcquireContextW is not implemented\n");
+ return;
+ }
st = pAcquireCredentialsHandleA(NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL,
NULL);
--
1.6.2.5
--------------060809070501030603030106--
More information about the wine-patches
mailing list