diff options
-rw-r--r-- | plugins/BASS_interface/src/Main.cpp | 2 | ||||
-rw-r--r-- | plugins/OpenSSL/src/main.cpp | 3 | ||||
-rw-r--r-- | plugins/OpenSSL/src/stdafx.h | 4 |
3 files changed, 6 insertions, 3 deletions
diff --git a/plugins/BASS_interface/src/Main.cpp b/plugins/BASS_interface/src/Main.cpp index 8e3ab62e57..b8d688bb1c 100644 --- a/plugins/BASS_interface/src/Main.cpp +++ b/plugins/BASS_interface/src/Main.cpp @@ -4,7 +4,9 @@ Copyright (C) 2010, 2011 tico-tico #include "stdafx.h"
+#define DELAYIMP_INSECURE_WRITABLE_HOOKS
#include <delayimp.h>
+
#include "bass.h"
#pragma comment(lib, "delayimp.lib")
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> |