summaryrefslogtreecommitdiff
path: root/plugins/CryptoPP/src/cpp_misc.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-03-31 20:25:06 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-03-31 20:25:06 +0000
commitc3bc5acc8901c1f6587750cd193b72033c0b0188 (patch)
tree44da53acce0474be58420cc330dac429ad3d7329 /plugins/CryptoPP/src/cpp_misc.cpp
parent80fd782ef78a302f77f5f58e08e32c7a29e2105a (diff)
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
Diffstat (limited to 'plugins/CryptoPP/src/cpp_misc.cpp')
-rw-r--r--plugins/CryptoPP/src/cpp_misc.cpp2
1 files changed, 1 insertions, 1 deletions
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);