WIN_FindWindow: use GetExeptr(pWnd->hInstance) for CLASS_FindClassByAtom.

This commit is contained in:
Uwe Bonnes 1999-07-04 12:52:14 +00:00 committed by Alexandre Julliard
parent a8aa5e4f63
commit a2b938c2d5
1 changed files with 3 additions and 1 deletions

View File

@ -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 */
}