summaryrefslogtreecommitdiff
path: root/plugins/NewAwaySysMod/AwaySys.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-05-22 14:33:42 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-05-22 14:33:42 +0000
commit324c182bb9772dec5ed4191b9407b74ddf031c15 (patch)
tree250f45f35386c4d37f8749f095426960048c9ebc /plugins/NewAwaySysMod/AwaySys.cpp
parent37f2cac0981177aef291a3411c64c0494187cfbc (diff)
fixes for some perversions
git-svn-id: http://svn.miranda-ng.org/main/trunk@129 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NewAwaySysMod/AwaySys.cpp')
-rw-r--r--plugins/NewAwaySysMod/AwaySys.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/NewAwaySysMod/AwaySys.cpp b/plugins/NewAwaySysMod/AwaySys.cpp
index c810368ebf..aaaa8f8118 100644
--- a/plugins/NewAwaySysMod/AwaySys.cpp
+++ b/plugins/NewAwaySysMod/AwaySys.cpp
@@ -29,7 +29,6 @@
was no point in rewriting it all.
*/
-#define _DECL_DLLMAIN
#include "Common.h"
#include "m_genmenu.h"
#include "m_idle.h"
@@ -139,12 +138,10 @@ PLUGININFO oldPluginInfo = {
pluginInfo.replacesDefaultModule
};
-BOOL WINAPI MyDllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
+BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
g_hInstance = hinstDLL;
-// have to call _CRT_INIT here, and redefine DLL entry point to MyDllMain because of
-// msvcr71.dll's __CppXcptFilter function dependency, which is not present in msvcrt.dll
- return _CRT_INIT(hinstDLL, fdwReason, lpvReserved);
+ return TRUE;
}
static const MUUID interfaces[] = {MIID_SRAWAY, MIID_LAST}; // TODO: add MIID_WHOISREADING here if there'll be any some time in future..