Bugfix: Cope with NULL pDriverData in X11DRV_WND_GetXWindow.
This commit is contained in:
parent
88bd84abbb
commit
4aaf65e6b4
@ -49,7 +49,7 @@ Atom dndSelection = None;
|
|||||||
*/
|
*/
|
||||||
Window X11DRV_WND_GetXWindow(WND *wndPtr)
|
Window X11DRV_WND_GetXWindow(WND *wndPtr)
|
||||||
{
|
{
|
||||||
return wndPtr ?
|
return wndPtr && wndPtr->pDriverData ?
|
||||||
((X11DRV_WND_DATA *) wndPtr->pDriverData)->window : 0;
|
((X11DRV_WND_DATA *) wndPtr->pDriverData)->window : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user