mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 22:20:26 +00:00
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)
|
||||
{
|
||||
return wndPtr ?
|
||||
return wndPtr && wndPtr->pDriverData ?
|
||||
((X11DRV_WND_DATA *) wndPtr->pDriverData)->window : 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user