summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--message_notify/popups.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/message_notify/popups.cpp b/message_notify/popups.cpp
index 9066613..20a58f0 100644
--- a/message_notify/popups.cpp
+++ b/message_notify/popups.cpp
@@ -42,6 +42,11 @@ void __stdcall sttCloseSRMMWindowProc( ULONG dwParam )
LRESULT CALLBACK NullWindowProc( HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam )
{
switch( message ) {
+ case UM_INITPOPUP:
+ HANDLE hContact = (HANDLE)CallService(MS_POPUP_GETPLUGINDATA, (WPARAM)hWnd, (LPARAM)&hContact);
+ if(!InList(hContact, hWnd)) AddToWindowList(hContact, hWnd);
+ return TRUE;
+
case WM_COMMAND: {
HANDLE hContact = (HANDLE)CallService(MS_POPUP_GETPLUGINDATA, (WPARAM)hWnd, (LPARAM)&hContact);
QueueUserAPC( sttOpenSRMMWindowProc , mainThread, ( ULONG )hContact );
@@ -78,10 +83,6 @@ LRESULT CALLBACK NullWindowProc( HWND hWnd, UINT message, WPARAM wParam, LPARAM
return TRUE;
}
- case UM_INITPOPUP:
- HANDLE hContact = (HANDLE)CallService(MS_POPUP_GETPLUGINDATA, (WPARAM)hWnd, (LPARAM)&hContact);
- if(!InList(hContact, hWnd)) AddToWindowList(hContact, hWnd);
- return TRUE;
}
return DefWindowProc(hWnd, message, wParam, lParam);