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:
parent
b907079596
commit
a492c02649
|
@ -315,7 +315,6 @@ static Bool
|
||||||
winActivateAppNativeGDI (ScreenPtr pScreen)
|
winActivateAppNativeGDI (ScreenPtr pScreen)
|
||||||
{
|
{
|
||||||
winScreenPriv(pScreen);
|
winScreenPriv(pScreen);
|
||||||
winScreenInfo *pScreenInfo = pScreenPriv->pScreenInfo;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Are we active?
|
* Are we active?
|
||||||
|
@ -323,7 +322,8 @@ winActivateAppNativeGDI (ScreenPtr pScreen)
|
||||||
*/
|
*/
|
||||||
if (pScreenPriv != NULL
|
if (pScreenPriv != NULL
|
||||||
&& pScreenPriv->fActive
|
&& pScreenPriv->fActive
|
||||||
&& pScreenInfo->fFullScreen)
|
&& pScreenPriv->pScreenInfo
|
||||||
|
&& pScreenPriv->pScreenInfo->fFullScreen)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* Activating, attempt to bring our window
|
* Activating, attempt to bring our window
|
||||||
|
@ -338,7 +338,8 @@ winActivateAppNativeGDI (ScreenPtr pScreen)
|
||||||
*/
|
*/
|
||||||
if (pScreenPriv != NULL
|
if (pScreenPriv != NULL
|
||||||
&& !pScreenPriv->fActive
|
&& !pScreenPriv->fActive
|
||||||
&& pScreenInfo->fFullScreen)
|
&& pScreenPriv->pScreenInfo
|
||||||
|
&& pScreenPriv->pScreenInfo->fFullScreen)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* Deactivating, stuff our window onto the
|
* Deactivating, stuff our window onto the
|
||||||
|
|
Loading…
Reference in New Issue