DXGL r174 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r173‎ | r174 | r175 >
Date:00:33, 23 June 2012
Author:admin
Status:new
Tags:
Comment:
Fix window shutdown deadlock by processing messages until window is destroyed.
Modified paths:
  • /ddraw/glRenderer.cpp (modified) (history)

Diff [purge]

Index: ddraw/glRenderer.cpp
@@ -571,7 +571,7 @@
572572 inputs[4] = (void*)newwnd;
573573 opcode = OP_SETWND;
574574 SetEvent(start);
575 - WaitForSingleObject(busy,INFINITE);
 575+ WaitForObjectAndMessages(busy);
576576 LeaveCriticalSection(&cs);
577577 }
578578 /**