crypt32: Fix adding trusted roots to store.

Fixes Steam client errors on SSL connections
(regression from bd59aa6d66).

Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Paul Gofman 2020-11-10 18:31:10 +03:00 committed by Alexandre Julliard
parent 2f90b17ab2
commit 706e35f2a2
1 changed files with 1 additions and 1 deletions

View File

@ -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 );