engines/e_capi.c: fix typo.
authorAndy Polyakov <appro@openssl.org>
Wed, 19 Dec 2012 10:54:47 +0000 (10:54 +0000)
committerAndy Polyakov <appro@openssl.org>
Wed, 19 Dec 2012 10:54:47 +0000 (10:54 +0000)
Submitted by: Pierre Delaage

engines/e_capi.c

index fff8e6a..a3456a3 100644 (file)
@@ -1478,7 +1478,7 @@ static CAPI_KEY *capi_get_key(CAPI_CTX *ctx, const TCHAR *contname, TCHAR *provn
                }
        if(ctx->store_flags & CERT_SYSTEM_STORE_LOCAL_MACHINE)
                dwFlags = CRYPT_MACHINE_KEYSET;
-       if (!CryptAcquireContext(&key->hprov, contname, provname, ptype, dwflags))
+       if (!CryptAcquireContext(&key->hprov, contname, provname, ptype, dwFlags))
                {
                CAPIerr(CAPI_F_CAPI_GET_KEY, CAPI_R_CRYPTACQUIRECONTEXT_ERROR);
                capi_addlasterror();