Skip to content
Snippets Groups Projects
Commit 308477b6 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard
Browse files

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
Branches
Tags
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment