[Wine-patches] [eter-2.1] crypt32: Add a simple hack to support HCCE_LOCAL_MACHINE in CertGetCertificateChain. (eterbug #11826)

Dmitry Timoshkov dtimoshkov на etersoft.ru
Вт Июн 27 06:50:07 MSK 2017


---
 dlls/crypt32/chain.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/crypt32/chain.c b/dlls/crypt32/chain.c
index d112673d8c..f47f5ad663 100644
--- a/dlls/crypt32/chain.c
+++ b/dlls/crypt32/chain.c
@@ -2819,7 +2819,7 @@ BOOL WINAPI CertGetCertificateChain(HCERTCHAINENGINE hChainEngine,
         return FALSE;
     }
 
-    if (!hChainEngine)
+    if (!hChainEngine || hChainEngine == HCCE_LOCAL_MACHINE)
         hChainEngine = CRYPT_GetDefaultChainEngine();
     if (TRACE_ON(chain))
         dump_chain_para(pChainPara);
-- 
2.13.2



Подробная информация о списке рассылки Wine-patches