Commit 34264f26 authored by Stephane Lussier's avatar Stephane Lussier Committed by Alexandre Julliard

WM_SYSCOMMAND message (for SC_CLOSE) should be posted not sent.

parent 94552114
......@@ -1210,7 +1210,7 @@ static void EVENT_ClientMessage( HWND hWnd, XClientMessageEvent *event )
bIsDisabled = GetWindowLongA( hWnd, GWL_STYLE ) & WS_DISABLED;
if ( !Options.managed || !bIsDisabled )
SendMessage16( hWnd, WM_SYSCOMMAND, SC_CLOSE, 0 );
PostMessage16( hWnd, WM_SYSCOMMAND, SC_CLOSE, 0 );
}
else if ( event->message_type == dndProtocol &&
(event->data.l[0] == DndFile || event->data.l[0] == DndFiles) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment