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

This commit is contained in:
Stephane Lussier 1999-08-07 14:12:42 +00:00 committed by Alexandre Julliard
parent 9455211417
commit 34264f2686
1 changed files with 1 additions and 1 deletions

View File

@ -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) )