From c181a8269d30694cc036cfca3bb754ec81169444 Mon Sep 17 00:00:00 2001 From: Brendan Forster Date: Fri, 21 Apr 2017 12:47:11 +1000 Subject: [PATCH] and this is how we invoke the callback --- atom/browser/ui/certificate_trust_win.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/atom/browser/ui/certificate_trust_win.cc b/atom/browser/ui/certificate_trust_win.cc index c3e310b7ece..b4752b88c10 100644 --- a/atom/browser/ui/certificate_trust_win.cc +++ b/atom/browser/ui/certificate_trust_win.cc @@ -7,6 +7,8 @@ #include #include +#include "base/callback.h" + namespace certificate_trust { void ShowCertificateTrust(atom::NativeWindow* parent_window, @@ -33,13 +35,11 @@ void ShowCertificateTrust(atom::NativeWindow* parent_window, CERT_STORE_ADD_REPLACE_EXISTING, NULL); - // close certificate store CertCloseStore(hCertStore, CERT_CLOSE_STORE_FORCE_FLAG); - // free certificate CertFreeCertificateContext(pCertContext); - &callback; + callback.Run(); } } // namespace certificate_trust