From 16f92725a786a11ec301cccf37cfc9fb53943f0a Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Thu, 23 May 2024 22:26:55 +0800 Subject: [PATCH] [saco] Add ms_hAdvApi32 variable to CCryptoContext --- saco/archive/CryptoContext.cpp | 1 + saco/archive/CryptoContext.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/saco/archive/CryptoContext.cpp b/saco/archive/CryptoContext.cpp index a94c622..75afbd0 100644 --- a/saco/archive/CryptoContext.cpp +++ b/saco/archive/CryptoContext.cpp @@ -8,6 +8,7 @@ DWORD CCryptoContext::ms_dwRefCount = 0; DWORD CCryptoContext::ms_dwProviderType = PROV_RSA_FULL; LPTSTR CCryptoContext::ms_szProviderName = NULL; LPTSTR CCryptoContext::ms_szContainerName = (LPTSTR)"SAMP"; +HMODULE CCryptoContext::ms_hAdvApi32 = NULL; //------------------------------------ diff --git a/saco/archive/CryptoContext.h b/saco/archive/CryptoContext.h index 0075632..d9c950d 100644 --- a/saco/archive/CryptoContext.h +++ b/saco/archive/CryptoContext.h @@ -11,6 +11,8 @@ private: static LPTSTR ms_szProviderName; static LPTSTR ms_szContainerName; + static HMODULE ms_hAdvApi32; + HCRYPTPROV m_hCryptProv; public: