Check wndPtr for NULL.

This commit is contained in:
Marcus Meissner 1998-11-22 13:29:29 +00:00 committed by Alexandre Julliard
parent fa434ffaf2
commit de12d2abe4
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}