Skip to content
Snippets Groups Projects
Commit 8e7950a0 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard
Browse files

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

parent 73a6b2fc
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment