check shared_header

This commit is contained in:
Vincent Wei
2020-02-03 17:57:29 +08:00
parent 930f99f151
commit 61b4b4adf9
+4 -2
View File
@@ -3828,8 +3828,10 @@ HWND GUIAPI CreateMainWindowEx2 (PMAINWINCREATE pCreateInfo,
#ifdef _MGSCHEMA_COMPOSITING
// Close file descriptor to free kernel memory?
close (pWin->surf->shared_header->fd);
pWin->surf->shared_header->fd = -1;
if (pWin->surf->shared_header) {
close (pWin->surf->shared_header->fd);
pWin->surf->shared_header->fd = -1;
}
#endif
return (HWND)pWin;