From 5748b3e66640fe701a67f661ea808b3980bbe826 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 20 Aug 2013 11:46:02 +0000 Subject: fix for a broken check git-svn-id: http://svn.miranda-ng.org/main/trunk@5756 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/NewEventNotify/src/main.cpp | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'plugins') diff --git a/plugins/NewEventNotify/src/main.cpp b/plugins/NewEventNotify/src/main.cpp index 80d3975a66..fed94ffd9a 100644 --- a/plugins/NewEventNotify/src/main.cpp +++ b/plugins/NewEventNotify/src/main.cpp @@ -130,11 +130,7 @@ int HookedInit(WPARAM, LPARAM) if (ServiceExists("PluginSweeper/Add")) CallService("PluginSweeper/Add", (WPARAM)MODULE, (LPARAM)MODULE); - if (ServiceExists(MS_MSG_GETWINDOWDATA)) - g_IsSrmmWindowAPI = 1; - else - g_IsSrmmWindowAPI = 0; - + g_IsSrmmWindowAPI = ServiceExists(MS_MSG_GETWINDOWDATA) != 0; return 0; } @@ -204,8 +200,10 @@ int CheckMsgWnd(HANDLE hContact) mwid.uFlags = MSG_WINDOW_UFLAG_MSG_BOTH; mwd.cbSize = sizeof(MessageWindowData); mwd.hContact = hContact; - if (!CallService(MS_MSG_GETWINDOWDATA, (WPARAM) &mwid, (LPARAM) &mwd)) { - if (mwd.hwndWindow != NULL && (mwd.uState & MSG_WINDOW_STATE_EXISTS)) return 1; - } + if (!CallService(MS_MSG_GETWINDOWDATA, (WPARAM) &mwid, (LPARAM) &mwd)) + if (mwd.hwndWindow != NULL && (mwd.uState & MSG_WINDOW_STATE_EXISTS)) + return 1; } -} \ No newline at end of file + + return 0; +} -- cgit v1.2.3