summaryrefslogtreecommitdiff
path: root/plugins/OpenSSL/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/OpenSSL/src')
-rw-r--r--plugins/OpenSSL/src/main.cpp3
-rw-r--r--plugins/OpenSSL/src/stdafx.h4
2 files changed, 4 insertions, 3 deletions
diff --git a/plugins/OpenSSL/src/main.cpp b/plugins/OpenSSL/src/main.cpp
index 5f0eeaabca..e823e37161 100644
--- a/plugins/OpenSSL/src/main.cpp
+++ b/plugins/OpenSSL/src/main.cpp
@@ -29,8 +29,7 @@ HMODULE g_hWinCrypt;
FARPROC WINAPI delayHook(unsigned dliNotify, PDelayLoadInfo dli)
{
- switch (dliNotify)
- {
+ switch (dliNotify) {
case dliNotePreLoadLibrary:
if (!strcmpi(dli->szDll, "libeay32.dll"))
return (FARPROC)g_hOpenSSLCrypto;
diff --git a/plugins/OpenSSL/src/stdafx.h b/plugins/OpenSSL/src/stdafx.h
index 966baded3b..15baf87a7c 100644
--- a/plugins/OpenSSL/src/stdafx.h
+++ b/plugins/OpenSSL/src/stdafx.h
@@ -28,9 +28,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
typedef struct SslHandle *HSSL;
#include <shlobj.h>
-#include <delayimp.h>
#include <security.h>
+#define DELAYIMP_INSECURE_WRITABLE_HOOKS
+#include <delayimp.h>
+
#include <newpluginapi.h>
#include <m_netlib.h>
#include <m_langpack.h>