Check if pTempActiveWindow in WINPOS_SetWindowPos is valid after the
QUEUE_Lock.
This commit is contained in:
parent
ab13bee49a
commit
71bdc7c851
|
@ -1686,6 +1686,9 @@ BOOL WINPOS_SetActiveWindow( HWND hWnd, BOOL fMouse, BOOL fChangeFocus)
|
||||||
* (global active queue may have changed)
|
* (global active queue may have changed)
|
||||||
*/
|
*/
|
||||||
pTempActiveQueue = QUEUE_Lock( hActiveQueue );
|
pTempActiveQueue = QUEUE_Lock( hActiveQueue );
|
||||||
|
if(!pTempActiveQueue)
|
||||||
|
goto CLEANUP_END;
|
||||||
|
|
||||||
hwndActive = PERQDATA_GetActiveWnd( pTempActiveQueue->pQData );
|
hwndActive = PERQDATA_GetActiveWnd( pTempActiveQueue->pQData );
|
||||||
QUEUE_Unlock( pTempActiveQueue );
|
QUEUE_Unlock( pTempActiveQueue );
|
||||||
if( hwndPrevActive != hwndActive )
|
if( hwndPrevActive != hwndActive )
|
||||||
|
|
Loading…
Reference in New Issue