diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-05-22 21:06:02 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-05-22 21:06:02 +0000 |
commit | 3615f38b14197411ed8ae434b38d2ec00bf62768 (patch) | |
tree | c9a81be7e979ceb3f75642f306eb42b1467575fd /plugins/NewAwaySysMod/AwaySys.cpp | |
parent | 01354af31ca46355bd4dd03288e22602f139d2fe (diff) |
NewAwaySysMod x64 compilation fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@135 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NewAwaySysMod/AwaySys.cpp')
-rw-r--r-- | plugins/NewAwaySysMod/AwaySys.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/NewAwaySysMod/AwaySys.cpp b/plugins/NewAwaySysMod/AwaySys.cpp index aaaa8f8118..ee6badfbbf 100644 --- a/plugins/NewAwaySysMod/AwaySys.cpp +++ b/plugins/NewAwaySysMod/AwaySys.cpp @@ -58,7 +58,7 @@ int g_bIsIdle = false; HANDLE hMainThread;
int g_CSProtoCount = 0; // CommonStatus - StartupStatus and AdvancedAutoAway
VAR_PARSE_DATA VarParseData;
-int (*g_OldCallService)(const char *, WPARAM, LPARAM) = NULL;
+INT_PTR (*g_OldCallService)(const char *, WPARAM, LPARAM) = NULL;
static struct
{
@@ -525,7 +525,7 @@ int PreBuildContactMenu(WPARAM wParam, LPARAM lParam) }
-static int SetContactStatMsg(WPARAM wParam, LPARAM lParam)
+static INT_PTR SetContactStatMsg(WPARAM wParam, LPARAM lParam)
{
if (g_SetAwayMsgPage.GetWnd()) // already setting something
{
@@ -563,7 +563,7 @@ void UpdateSOEButtons(HANDLE hContact) }
*/
-int ToggleSendOnEvent(WPARAM wParam, LPARAM lParam)
+INT_PTR ToggleSendOnEvent(WPARAM wParam, LPARAM lParam)
{ // used only for the global setting
HANDLE hContact = (HANDLE)wParam;
CContactSettings(g_ProtoStates[hContact ? (char*)CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM)hContact, 0) : (char*)NULL].Status, hContact).Autoreply.Toggle();
@@ -572,7 +572,7 @@ int ToggleSendOnEvent(WPARAM wParam, LPARAM lParam) }
-int srvAutoreplyOn(WPARAM wParam, LPARAM lParam)
+INT_PTR srvAutoreplyOn(WPARAM wParam, LPARAM lParam)
{ // wParam = hContact
HANDLE hContact = (HANDLE)wParam;
CContactSettings(g_ProtoStates[(char*)CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM)hContact, 0)].Status, hContact).Autoreply = 1;
@@ -581,7 +581,7 @@ int srvAutoreplyOn(WPARAM wParam, LPARAM lParam) }
-int srvAutoreplyOff(WPARAM wParam, LPARAM lParam)
+INT_PTR srvAutoreplyOff(WPARAM wParam, LPARAM lParam)
{ // wParam = hContact
HANDLE hContact = (HANDLE)wParam;
CContactSettings(g_ProtoStates[(char*)CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM)hContact, 0)].Status, hContact).Autoreply = 0;
@@ -590,7 +590,7 @@ int srvAutoreplyOff(WPARAM wParam, LPARAM lParam) }
-int srvAutoreplyUseDefault(WPARAM wParam, LPARAM lParam)
+INT_PTR srvAutoreplyUseDefault(WPARAM wParam, LPARAM lParam)
{ // wParam = hContact
HANDLE hContact = (HANDLE)wParam;
CContactSettings(g_ProtoStates[(char*)CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM)hContact, 0)].Status, hContact).Autoreply = VAL_USEDEFAULT;
@@ -721,7 +721,7 @@ static int ContactSettingsInit(WPARAM wParam, LPARAM lParam) }
-int srvVariablesHandler(WPARAM wParam, LPARAM lParam)
+INT_PTR srvVariablesHandler(WPARAM wParam, LPARAM lParam)
{
ARGUMENTSINFO *ai = (ARGUMENTSINFO*)lParam;
ai->flags = AIF_DONTPARSE;
@@ -827,7 +827,7 @@ int srvVariablesHandler(WPARAM wParam, LPARAM lParam) }
-int srvFreeVarMem(WPARAM wParam, LPARAM lParam)
+INT_PTR srvFreeVarMem(WPARAM wParam, LPARAM lParam)
{
if (!lParam)
{
@@ -838,7 +838,7 @@ int srvFreeVarMem(WPARAM wParam, LPARAM lParam) }
-static int MyCallService(const char *name, WPARAM wParam, LPARAM lParam)
+static INT_PTR MyCallService(const char *name, WPARAM wParam, LPARAM lParam)
{
if (name && wParam <= ID_STATUS_OUTTOLUNCH && wParam >= ID_STATUS_OFFLINE) // wParam conditions here are distinctive "features" of PS_SETSTATUS and PS_SETAWAYMSG services, so if wParam does not suit them, we'll pass the control to the old CallService function as soon as possible
{
|