mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 05:51:26 +08:00
[WIN32K:NTUSER]
- In IntDesktopObjectDelete, correctly handle the case where pDeskInfo could not be allocated CORE-11124 svn path=/trunk/; revision=71239
This commit is contained in:
@@ -151,10 +151,12 @@ IntDesktopObjectDelete(
|
||||
|
||||
TRACE("Deleting desktop object 0x%p\n", pdesk);
|
||||
|
||||
ASSERT(pdesk->pDeskInfo->spwnd->spwndChild == NULL);
|
||||
|
||||
if (pdesk->pDeskInfo->spwnd)
|
||||
if (pdesk->pDeskInfo &&
|
||||
pdesk->pDeskInfo->spwnd)
|
||||
{
|
||||
ASSERT(pdesk->pDeskInfo->spwnd->spwndChild == NULL);
|
||||
co_UserDestroyWindow(pdesk->pDeskInfo->spwnd);
|
||||
}
|
||||
|
||||
if (pdesk->spwndMessage)
|
||||
co_UserDestroyWindow(pdesk->spwndMessage);
|
||||
|
||||
Reference in New Issue
Block a user