Paul Gofman : crypt32: Fix adding trusted roots to store.

Alexandre Julliard julliard at winehq.org
Tue Nov 10 15:30:24 CST 2020


Module: wine
Branch: master
Commit: 706e35f2a2db6beaebdf972572f897046c5e9585
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=706e35f2a2db6beaebdf972572f897046c5e9585

Author: Paul Gofman <pgofman at codeweavers.com>
Date:   Tue Nov 10 18:31:10 2020 +0300

crypt32: Fix adding trusted roots to store.

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

Signed-off-by: Paul Gofman <pgofman at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

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




More information about the wine-cvs mailing list