and this is how we invoke the callback
This commit is contained in:
parent
1439a1e322
commit
c181a8269d
1 changed files with 3 additions and 3 deletions
|
@ -7,6 +7,8 @@
|
||||||
#include <wincrypt.h>
|
#include <wincrypt.h>
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|
||||||
|
#include "base/callback.h"
|
||||||
|
|
||||||
namespace certificate_trust {
|
namespace certificate_trust {
|
||||||
|
|
||||||
void ShowCertificateTrust(atom::NativeWindow* parent_window,
|
void ShowCertificateTrust(atom::NativeWindow* parent_window,
|
||||||
|
@ -33,13 +35,11 @@ void ShowCertificateTrust(atom::NativeWindow* parent_window,
|
||||||
CERT_STORE_ADD_REPLACE_EXISTING,
|
CERT_STORE_ADD_REPLACE_EXISTING,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
// close certificate store
|
|
||||||
CertCloseStore(hCertStore, CERT_CLOSE_STORE_FORCE_FLAG);
|
CertCloseStore(hCertStore, CERT_CLOSE_STORE_FORCE_FLAG);
|
||||||
|
|
||||||
// free certificate
|
|
||||||
CertFreeCertificateContext(pCertContext);
|
CertFreeCertificateContext(pCertContext);
|
||||||
|
|
||||||
&callback;
|
callback.Run();
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace certificate_trust
|
} // namespace certificate_trust
|
||||||
|
|
Loading…
Reference in a new issue