mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
hw/xwin: Fix possible null ptr deref in winActivateAppNativeGDI()
Signed-off-by: Ryan Pavlik <rpavlik@iastate.edu> Reviewed-by: Colin Harrison <colin.harrison@virgin.net> Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk>
This commit is contained in:
@@ -315,7 +315,6 @@ static Bool
|
||||
winActivateAppNativeGDI (ScreenPtr pScreen)
|
||||
{
|
||||
winScreenPriv(pScreen);
|
||||
winScreenInfo *pScreenInfo = pScreenPriv->pScreenInfo;
|
||||
|
||||
/*
|
||||
* Are we active?
|
||||
@@ -323,7 +322,8 @@ winActivateAppNativeGDI (ScreenPtr pScreen)
|
||||
*/
|
||||
if (pScreenPriv != NULL
|
||||
&& pScreenPriv->fActive
|
||||
&& pScreenInfo->fFullScreen)
|
||||
&& pScreenPriv->pScreenInfo
|
||||
&& pScreenPriv->pScreenInfo->fFullScreen)
|
||||
{
|
||||
/*
|
||||
* Activating, attempt to bring our window
|
||||
@@ -338,7 +338,8 @@ winActivateAppNativeGDI (ScreenPtr pScreen)
|
||||
*/
|
||||
if (pScreenPriv != NULL
|
||||
&& !pScreenPriv->fActive
|
||||
&& pScreenInfo->fFullScreen)
|
||||
&& pScreenPriv->pScreenInfo
|
||||
&& pScreenPriv->pScreenInfo->fFullScreen)
|
||||
{
|
||||
/*
|
||||
* Deactivating, stuff our window onto the
|
||||
|
||||
Reference in New Issue
Block a user