From 8e7950a0ec77a3da3a6ecda3a01f410ad72ce734 Mon Sep 17 00:00:00 2001
From: Marcus Meissner <marcus@jet.franken.de>
Date: Mon, 14 Dec 1998 12:52:37 +0000
Subject: [PATCH] (FOCUS_SwitchFocus) check for pFocusTo == NULL instead of
 hFocusTo==0.

---
 windows/focus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/windows/focus.c b/windows/focus.c
index b9c73ee27ce..4ff9faff249 100644
--- a/windows/focus.c
+++ b/windows/focus.c
@@ -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
-- 
GitLab