Check if pTempActiveWindow in WINPOS_SetWindowPos is valid after the

QUEUE_Lock.
This commit is contained in:
Francois Boisvert 1999-04-11 11:59:25 +00:00 committed by Alexandre Julliard
parent ab13bee49a
commit 71bdc7c851
1 changed files with 3 additions and 0 deletions

View File

@ -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 )