Module: wine Branch: master Commit: 7b3213fd65d8ffa9cdd0149f54d366762e84b2da URL: http://source.winehq.org/git/wine.git/?a=commit;h=7b3213fd65d8ffa9cdd0149f54...
Author: Paul Vriens Paul.Vriens.Wine@gmail.com Date: Fri Oct 2 11:09:31 2009 +0200
secur32/tests: Skip some tests on WinMe to avoid a crash.
---
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);