summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-07-28 09:07:46 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-07-28 09:07:46 +0000
commit483e9e22eb387be7fb726a25a7738638aa81b610 (patch)
tree5266dc6bc9f413cd40314d449327ca6de4304242
parent2f261839b60692e33d0e160344d0d636d49c90ba (diff)
compilation fix for VS2015.3
git-svn-id: http://svn.miranda-ng.org/main/trunk@17139 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--plugins/BASS_interface/src/Main.cpp2
-rw-r--r--plugins/OpenSSL/src/main.cpp3
-rw-r--r--plugins/OpenSSL/src/stdafx.h4
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>