Commit 699e0a55 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

wintrust: Translate a lack of open mode flags to OPEN_ALWAYS.

parent 092cf0a0
......@@ -856,7 +856,7 @@ HANDLE WINAPI CryptCATOpen(WCHAR *filename, DWORD flags, HCRYPTPROV hProv,
{
HANDLE file, hmsg;
BYTE *buffer = NULL;
DWORD size, open_mode = OPEN_EXISTING;
DWORD size, open_mode = OPEN_ALWAYS;
struct cryptcat *cc;
TRACE("filename %s, flags %#x, provider %#lx, version %#x, type %#x\n",
......@@ -870,8 +870,8 @@ HANDLE WINAPI CryptCATOpen(WCHAR *filename, DWORD flags, HCRYPTPROV hProv,
if (!dwEncodingType) dwEncodingType = X509_ASN_ENCODING | PKCS_7_ASN_ENCODING;
if (flags & CRYPTCAT_OPEN_ALWAYS)
open_mode = OPEN_ALWAYS;
if (flags == CRYPTCAT_OPEN_EXISTING)
open_mode = OPEN_EXISTING;
if (flags & CRYPTCAT_OPEN_CREATENEW)
open_mode = CREATE_NEW;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment