[PATCH] crypt32: Fix adding trusted roots to store.
Paul Gofman
pgofman at codeweavers.com
Tue Nov 10 09:31:10 CST 2020
Fixes Steam client errors on SSL connections
(regression from bd59aa6d66001cb1f8b308300a5ce57a7f7b65d5).
Signed-off-by: Paul Gofman <pgofman at codeweavers.com>
---
dlls/crypt32/rootstore.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/crypt32/rootstore.c b/dlls/crypt32/rootstore.c
index 87c9808f51b..d93de8fb37a 100644
--- a/dlls/crypt32/rootstore.c
+++ b/dlls/crypt32/rootstore.c
@@ -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 );
--
2.28.0
More information about the wine-devel
mailing list