Check wndPtr for NULL.
This commit is contained in:
parent
fa434ffaf2
commit
de12d2abe4
|
@ -1904,7 +1904,7 @@ HWND32 WINAPI SetParent32( HWND32 hwndChild, HWND32 hwndNewParent )
|
|||
WND *pWndNewParent =
|
||||
(hwndNewParent) ? WIN_FindWndPtr( hwndNewParent ) : pWndDesktop;
|
||||
WND *pWndOldParent =
|
||||
(*wndPtr->pDriver->pSetParent)(wndPtr, pWndNewParent);
|
||||
(wndPtr)?(*wndPtr->pDriver->pSetParent)(wndPtr, pWndNewParent):NULL;
|
||||
|
||||
return pWndOldParent?pWndOldParent->hwndSelf:0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue