Commit 308477b6 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

Set private data struct to NULL to expose problems in other code

better. Fixes the XUnmapWindow problems reported by replacing them with NULL ptr dereferences.
parent fa5fe429
......@@ -100,6 +100,10 @@ void X11DRV_WND_Finalize(WND *wndPtr)
X11DRV_WND_DATA *pWndDriverData =
(X11DRV_WND_DATA *) wndPtr->pDriverData;
if (!wndPtr->pDriverData) {
ERR(win,"Trying to destroy window again. Not good.\n");
return;
}
if(pWndDriverData->window)
{
ERR(win,
......@@ -108,6 +112,7 @@ void X11DRV_WND_Finalize(WND *wndPtr)
pWndDriverData->window
);
}
wndPtr->pDriverData = NULL;
HeapFree(SystemHeap, 0, wndPtr->pDriverData);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment