X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=subsystems%2Fwin32%2Fwin32k%2Fntuser%2Fcallproc.c;h=52f83459941163e5f2f9fb0e9585f085522427fb;hp=f2298256d082008805c66825e0d7b8197b61f977;hb=d6686bcbb1ec308b93bf4666082c59a2db7fb1b5;hpb=8dec037a81f3e7f6cb03340d6eb843500fd14455 diff --git a/subsystems/win32/win32k/ntuser/callproc.c b/subsystems/win32/win32k/ntuser/callproc.c index f2298256d08..52f83459941 100644 --- a/subsystems/win32/win32k/ntuser/callproc.c +++ b/subsystems/win32/win32k/ntuser/callproc.c @@ -193,16 +193,14 @@ NtUserGetCPD( GETCPD Flags, ULONG_PTR ProcIn) { - PWINDOW_OBJECT Window; PWND Wnd; ULONG_PTR Result = 0; UserEnterExclusive(); - if (!(Window = UserGetWindowObject(hWnd)) || !Window->Wnd) + if (!(Wnd = UserGetWindowObject(hWnd))) { goto Cleanup; } - Wnd = Window->Wnd; // Processing Window only from User space. if ((Flags & ~(UserGetCPDU2A|UserGetCPDA2U)) != UserGetCPDClass)