Commit 71bdc7c8 authored by Francois Boisvert's avatar Francois Boisvert Committed by Alexandre Julliard

Check if pTempActiveWindow in WINPOS_SetWindowPos is valid after the

QUEUE_Lock.
parent ab13bee4
......@@ -1686,6 +1686,9 @@ BOOL WINPOS_SetActiveWindow( HWND hWnd, BOOL fMouse, BOOL fChangeFocus)
* (global active queue may have changed)
*/
pTempActiveQueue = QUEUE_Lock( hActiveQueue );
if(!pTempActiveQueue)
goto CLEANUP_END;
hwndActive = PERQDATA_GetActiveWnd( pTempActiveQueue->pQData );
QUEUE_Unlock( pTempActiveQueue );
if( hwndPrevActive != hwndActive )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment