From 04706c9533f06ac10ab92b9fc608f8e669b66931 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 5 Jun 2012 20:18:07 +0000 Subject: git-svn-id: http://svn.miranda-ng.org/main/trunk@323 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/AimOscar/aim.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'protocols/AimOscar') diff --git a/protocols/AimOscar/aim.cpp b/protocols/AimOscar/aim.cpp index 7eb6609245..42b1b83e96 100644 --- a/protocols/AimOscar/aim.cpp +++ b/protocols/AimOscar/aim.cpp @@ -44,7 +44,7 @@ OBJLIST g_Instances(1, sttCompareProtocols); ///////////////////////////////////////////////////////////////////////////////////////// // Dll entry point -extern "C" +extern "C" BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD /*fdwReason*/,LPVOID /*lpvReserved*/) { hInstance = hinstDLL; @@ -54,7 +54,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD /*fdwReason*/,LPVOID /*lpvReserved* ///////////////////////////////////////////////////////////////////////////////////////// // Plugin information -static const PLUGININFOEX pluginInfo = +static const PLUGININFOEX pluginInfo = { sizeof(PLUGININFOEX), "AIM Protocol", @@ -75,6 +75,8 @@ static const PLUGININFOEX pluginInfo = extern "C" __declspec(dllexport) const PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) { + *(unsigned long*)(&AIM_CAP_MIRANDA[8]) = _htonl(mirandaVersion); + *(unsigned long*)(&AIM_CAP_MIRANDA[12]) = _htonl(__VERSION_DWORD); return &pluginInfo; } -- cgit v1.2.3