From c3bc5acc8901c1f6587750cd193b72033c0b0188 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 31 Mar 2013 20:25:06 +0000 Subject: fix against the crash on the inactive CryptoPP context git-svn-id: http://svn.miranda-ng.org/main/trunk@4270 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/CryptoPP/src/cpp_misc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/CryptoPP/src/cpp_misc.cpp') diff --git a/plugins/CryptoPP/src/cpp_misc.cpp b/plugins/CryptoPP/src/cpp_misc.cpp index 5e5720df18..28d89f7cde 100644 --- a/plugins/CryptoPP/src/cpp_misc.cpp +++ b/plugins/CryptoPP/src/cpp_misc.cpp @@ -19,7 +19,7 @@ int __cdecl cpp_get_version(void) { BOOL cpp_get_simdata(HANDLE context, pCNTX *ptr, pSIMDATA *p) { - *ptr = get_context_on_id(context); + *ptr = get_context_on_id(context); if (!ptr) return 0; // if (!*ptr || !(*ptr)->pdata || (*ptr)->mode&(MODE_PGP|MODE_GPG|MODE_RSA)) return FALSE; if (!*ptr || (*ptr)->mode&(MODE_PGP|MODE_GPG|MODE_RSA)) return FALSE; *p = (pSIMDATA) cpp_alloc_pdata(*ptr); -- cgit v1.2.3