summaryrefslogtreecommitdiff
path: root/plugins/KeyboardNotify/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/KeyboardNotify/src')
-rw-r--r--plugins/KeyboardNotify/src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/KeyboardNotify/src/main.cpp b/plugins/KeyboardNotify/src/main.cpp
index 277ae0e0f4..4aad0b4575 100644
--- a/plugins/KeyboardNotify/src/main.cpp
+++ b/plugins/KeyboardNotify/src/main.cpp
@@ -842,7 +842,7 @@ void createEventPrefix(wchar_t *prefixName, size_t maxLen)
BOOL CheckMsgWnd(MCONTACT hContact, BOOL *focus)
{
if (hContact) {
- MessageWindowData mwd = { sizeof(MessageWindowData) };
+ MessageWindowData mwd;
if (!CallService(MS_MSG_GETWINDOWDATA, hContact, (LPARAM)&mwd) && mwd.hwndWindow) {
*focus = mwd.uState & MSG_WINDOW_STATE_FOCUS;
return TRUE;