Bugfix: Cope with NULL pDriverData in X11DRV_WND_GetXWindow.

This commit is contained in:
Ulrich Weigand 1999-02-18 17:30:40 +00:00 committed by Alexandre Julliard
parent 88bd84abbb
commit 4aaf65e6b4

View File

@ -49,7 +49,7 @@ Atom dndSelection = None;
*/
Window X11DRV_WND_GetXWindow(WND *wndPtr)
{
return wndPtr ?
return wndPtr && wndPtr->pDriverData ?
((X11DRV_WND_DATA *) wndPtr->pDriverData)->window : 0;
}