From ca55ac7905e8ffd1ee979b5b5fe7121fa7a03a5d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 28 May 2018 22:38:35 +0300 Subject: all plugins => CMPlugin virtual functions --- plugins/CrashDumper/src/crshdmp.cpp | 4 ++-- plugins/CrashDumper/src/stdafx.h | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'plugins/CrashDumper/src') diff --git a/plugins/CrashDumper/src/crshdmp.cpp b/plugins/CrashDumper/src/crshdmp.cpp index effb082fc8..e4972c70b9 100644 --- a/plugins/CrashDumper/src/crshdmp.cpp +++ b/plugins/CrashDumper/src/crshdmp.cpp @@ -350,7 +350,7 @@ static int PreShutdown(WPARAM, LPARAM) return 0; } -extern "C" int __declspec(dllexport) Load(void) +int CMPlugin::Load() { hMsftedit = LoadLibrary(L"Msftedit.dll"); if (hMsftedit == nullptr) @@ -390,7 +390,7 @@ extern "C" int __declspec(dllexport) Load(void) ///////////////////////////////////////////////////////////////////////////////////////// -extern "C" int __declspec(dllexport) Unload(void) +int CMPlugin::Unload() { DestroyAllWindows(); diff --git a/plugins/CrashDumper/src/stdafx.h b/plugins/CrashDumper/src/stdafx.h index 7b1bd36867..9f47d34e63 100644 --- a/plugins/CrashDumper/src/stdafx.h +++ b/plugins/CrashDumper/src/stdafx.h @@ -81,6 +81,9 @@ along with this program. If not, see . struct CMPlugin : public PLUGIN { CMPlugin(); + + int Load() override; + int Unload() override; }; #define VI_FLAG_FORMAT 1 -- cgit v1.2.3