You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ma...@apache.org on 2017/10/27 16:52:49 UTC

svn commit: r1813549 - /commons/proper/daemon/trunk/src/native/windows/apps/prunmgr/prunmgr.c

Author: markt
Date: Fri Oct 27 16:52:49 2017
New Revision: 1813549

URL: http://svn.apache.org/viewvc?rev=1813549&view=rev
Log:
When sending messages to another process, don't wait for the message to be processed.

Modified:
    commons/proper/daemon/trunk/src/native/windows/apps/prunmgr/prunmgr.c

Modified: commons/proper/daemon/trunk/src/native/windows/apps/prunmgr/prunmgr.c
URL: http://svn.apache.org/viewvc/commons/proper/daemon/trunk/src/native/windows/apps/prunmgr/prunmgr.c?rev=1813549&r1=1813548&r2=1813549&view=diff
==============================================================================
--- commons/proper/daemon/trunk/src/native/windows/apps/prunmgr/prunmgr.c (original)
+++ commons/proper/daemon/trunk/src/native/windows/apps/prunmgr/prunmgr.c Fri Oct 27 16:52:49 2017
@@ -1729,7 +1729,7 @@ int WINAPI WinMain(HINSTANCE hInstance,
     if (lpCmdline->dwCmdIndex == 4) {
         HANDLE hOther = FindWindow(_gui_store->szWndClass, NULL);
         if (hOther)
-            SendMessage(hOther, WM_CLOSE, 0, 0);
+            SendNotifyMessage(hOther, WM_CLOSE, 0, 0);
         goto cleanup;
     }
 
@@ -1739,7 +1739,7 @@ int WINAPI WinMain(HINSTANCE hInstance,
             HANDLE hOther = FindWindow(_gui_store->szWndClass, NULL);
             if (hOther) {
                 SetForegroundWindow(hOther);
-                SendMessage(hOther, WM_COMMAND, MAKEWPARAM(IDM_TM_CONFIG, 0), 0);
+                SendNotifyMessage(hOther, WM_COMMAND, MAKEWPARAM(IDM_TM_CONFIG, 0), 0);
             }
             else {
                 /* Skip sytem error message */