mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 22:05:49 +00:00
[Win32k]
- rpdeskParent can be NULL and should not be depended on! Fixes CORE-8665. svn path=/trunk/; revision=64859
This commit is contained in:
parent
ccf02b054c
commit
5c5affcc22
1 changed files with 10 additions and 1 deletions
|
@ -7,6 +7,7 @@
|
|||
*/
|
||||
|
||||
#include <win32k.h>
|
||||
DBG_DEFAULT_CHANNEL(UserClass);
|
||||
|
||||
/* CALLPROC ******************************************************************/
|
||||
|
||||
|
@ -110,6 +111,7 @@ UserGetCPD(
|
|||
{
|
||||
PCLS pCls;
|
||||
PWND pWnd;
|
||||
PDESKTOP pDesk;
|
||||
PCALLPROCDATA CallProc = NULL;
|
||||
PTHREADINFO pti;
|
||||
|
||||
|
@ -131,7 +133,14 @@ UserGetCPD(
|
|||
// No luck, create a new one for the requested proc.
|
||||
if (!CallProc)
|
||||
{
|
||||
CallProc = CreateCallProc( pCls->rpdeskParent,
|
||||
if (!pCls->rpdeskParent)
|
||||
{
|
||||
TRACE("Null DESKTOP Atom %d\n",pCls->atomClassName);
|
||||
pDesk = pti->rpdesk;
|
||||
}
|
||||
else
|
||||
pDesk = pCls->rpdeskParent;
|
||||
CallProc = CreateCallProc( pDesk,
|
||||
(WNDPROC)ProcIn,
|
||||
!!(Flags & UserGetCPDA2U),
|
||||
pti->ppi);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue