hw/xwin: Fix possible null ptr deref in winMWExtWMRestackFrame()
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
							
								
									3c501691a0
								
							
						
					
					
						commit
						c824004b45
					
				|  | @ -551,7 +551,7 @@ winMWExtWMRestackFrame (RootlessFrameID wid, RootlessFrameID nextWid) | ||||||
|   winDebug ("winMWExtWMRestackFrame (%08x)\n", (int) pRLWinPriv); |   winDebug ("winMWExtWMRestackFrame (%08x)\n", (int) pRLWinPriv); | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
|   if (pScreenPriv->fRestacking) return; |   if (pScreenPriv && pScreenPriv->fRestacking) return; | ||||||
| 
 | 
 | ||||||
|   if (pScreenPriv) pScreenInfo = pScreenPriv->pScreenInfo; |   if (pScreenPriv) pScreenInfo = pScreenPriv->pScreenInfo; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue