mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-28 16:17:09 +08:00
check shared_header
This commit is contained in:
+4
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user