mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 05:00:30 +00:00
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
Block a user