WIN_FindWindow: use GetExeptr(pWnd->hInstance) for CLASS_FindClassByAtom.
This commit is contained in:
parent
a8aa5e4f63
commit
a2b938c2d5
|
@ -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 */
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue