diff options
Diffstat (limited to 'protocols/EmLanProto')
-rw-r--r-- | protocols/EmLanProto/src/amdproto.cpp | 4 | ||||
-rw-r--r-- | protocols/EmLanProto/src/stdafx.h | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/protocols/EmLanProto/src/amdproto.cpp b/protocols/EmLanProto/src/amdproto.cpp index 6c02c60c61..61e215590c 100644 --- a/protocols/EmLanProto/src/amdproto.cpp +++ b/protocols/EmLanProto/src/amdproto.cpp @@ -327,7 +327,7 @@ INT_PTR CALLBACK EMPDlgProcMessage(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARA return FALSE;
}
-extern "C" int __declspec(dllexport) __cdecl Load()
+int CMPlugin::Load()
{
g_lan = new CMLan();
@@ -356,7 +356,7 @@ extern "C" int __declspec(dllexport) __cdecl Load() return 0;
}
-extern "C" int __declspec(dllexport) __cdecl Unload()
+int CMPlugin::Unload()
{
delete g_lan;
return 0;
diff --git a/protocols/EmLanProto/src/stdafx.h b/protocols/EmLanProto/src/stdafx.h index 30aca9c8a4..d39315933e 100644 --- a/protocols/EmLanProto/src/stdafx.h +++ b/protocols/EmLanProto/src/stdafx.h @@ -28,6 +28,9 @@ struct CMPlugin : public PLUGIN<CMPlugin>
{
CMPlugin();
+
+ int Load() override;
+ int Unload() override;
};
//#define VERBOSE
|