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:
parent
2f90b17ab2
commit
706e35f2a2
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue