From 8a74e7495ce5ad39de4f5c25121a84d35df90c36 Mon Sep 17 00:00:00 2001
From: George Hazan <ghazan@miranda.im>
Date: Sun, 20 May 2018 15:08:48 +0300
Subject: CMPlugin to receive a reference to PLUGININFOEX

---
 plugins/AVS/src/main.cpp | 8 ++++++--
 plugins/AVS/src/stdafx.h | 4 +---
 2 files changed, 7 insertions(+), 5 deletions(-)

(limited to 'plugins/AVS/src')

diff --git a/plugins/AVS/src/main.cpp b/plugins/AVS/src/main.cpp
index 076f7889c9..8169ab755e 100644
--- a/plugins/AVS/src/main.cpp
+++ b/plugins/AVS/src/main.cpp
@@ -43,7 +43,7 @@ void   InitServices();
 
 /////////////////////////////////////////////////////////////////////////////////////////
 
-PLUGININFOEX pluginInfoEx =
+static PLUGININFOEX pluginInfoEx =
 {
 	sizeof(PLUGININFOEX),
 	__PLUGIN_NAME,
@@ -54,9 +54,13 @@ PLUGININFOEX pluginInfoEx =
 	__AUTHORWEB,
 	UNICODE_AWARE,
 	// {E00F1643-263C-4599-B84B-053E5C511D29}
-{ 0xe00f1643, 0x263c, 0x4599,{ 0xb8, 0x4b, 0x5, 0x3e, 0x5c, 0x51, 0x1d, 0x29 } }
+	{ 0xe00f1643, 0x263c, 0x4599, { 0xb8, 0x4b, 0x5, 0x3e, 0x5c, 0x51, 0x1d, 0x29 } }
 };
 
+CMPlugin::CMPlugin() :
+	PLUGIN<CMPlugin>(AVS_MODULE, pluginInfoEx)
+{}
+
 extern "C" __declspec(dllexport) PLUGININFOEX * MirandaPluginInfoEx(DWORD)
 {
 	return &pluginInfoEx;
diff --git a/plugins/AVS/src/stdafx.h b/plugins/AVS/src/stdafx.h
index 162b642359..c2616efc6e 100644
--- a/plugins/AVS/src/stdafx.h
+++ b/plugins/AVS/src/stdafx.h
@@ -59,9 +59,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
 struct CMPlugin : public PLUGIN<CMPlugin>
 {
-	CMPlugin() :
-		PLUGIN<CMPlugin>(AVS_MODULE)
-	{}
+	CMPlugin();
 };
 
 /* most free()'s are invalid when the code is executed from a dll, so this changes
-- 
cgit v1.2.3