Commit 706e35f2 authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

crypt32: Fix adding trusted roots to store.

Fixes Steam client errors on SSL connections (regression from bd59aa6d). Signed-off-by: 's avatarPaul Gofman <pgofman@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 2f90b17a
......@@ -629,7 +629,7 @@ static void read_trusted_roots_from_known_locations(HCERTSTORE store)
buffer = HeapAlloc( GetProcessHeap(), 0, needed );
size = needed;
}
else CertAddEncodedCertificateToStore( store, X509_ASN_ENCODING, buffer, size,
else CertAddEncodedCertificateToStore( from, X509_ASN_ENCODING, buffer, needed,
CERT_STORE_ADD_NEW, NULL );
}
HeapFree( GetProcessHeap(), 0, buffer );
......
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