diff options
author | George Hazan <george.hazan@gmail.com> | 2013-08-20 11:46:02 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-08-20 11:46:02 +0000 |
commit | 5748b3e66640fe701a67f661ea808b3980bbe826 (patch) | |
tree | f46304955a47797c0bf38ee820f7f80f72f09b68 /plugins/NewEventNotify/src/main.cpp | |
parent | 92dc69374f10c9b982a92500e27252bd84409421 (diff) |
fix for a broken check
git-svn-id: http://svn.miranda-ng.org/main/trunk@5756 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NewEventNotify/src/main.cpp')
-rw-r--r-- | plugins/NewEventNotify/src/main.cpp | 16 |
1 files changed, 7 insertions, 9 deletions
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;
+}
|