(FOCUS_SwitchFocus) check for pFocusTo == NULL instead of hFocusTo==0.

This commit is contained in:
Marcus Meissner 1998-12-14 12:52:37 +00:00 committed by Alexandre Julliard
parent 73a6b2fc31
commit 8e7950a0ec
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ void FOCUS_SwitchFocus( HWND32 hFocusFrom, HWND32 hFocusTo )
* intertask at this time */
if (hFocusFrom) SendMessage16( hFocusFrom, WM_KILLFOCUS, hFocusTo, 0 );
#endif
if( !hFocusTo || hFocusTo != hwndFocus )
if( !pFocusTo || hFocusTo != hwndFocus )
return;
/* According to API docs, the WM_SETFOCUS message is sent AFTER the window