From a2b938c2d5c66e5855042ffcbdfe1aacb1eaf85e Mon Sep 17 00:00:00 2001 From: Uwe Bonnes Date: Sun, 4 Jul 1999 12:52:14 +0000 Subject: [PATCH] WIN_FindWindow: use GetExeptr(pWnd->hInstance) for CLASS_FindClassByAtom. --- windows/win.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/windows/win.c b/windows/win.c index edd440cf563..7732c6c2b31 100644 --- a/windows/win.c +++ b/windows/win.c @@ -1525,7 +1525,9 @@ static HWND WIN_FindWindow( HWND parent, HWND child, ATOM className, { if (className && !(pWnd->dwStyle & WS_CHILD)) { - if (!(pClass = CLASS_FindClassByAtom( className, pWnd->hInstance))) + if (!((pClass = CLASS_FindClassByAtom( className, pWnd->hInstance)) + ||(pClass = CLASS_FindClassByAtom( className, GetExePtr(pWnd->hInstance)))) + ) continue; /* Skip this window */ }