Pārlūkot izejas kodu

first attempt to fix deadlock on Pirates launch

David Rose 16 gadi atpakaļ
vecāks
revīzija
430800a43e
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. 4 0
      direct/src/plugin_activex/PPInstance.cpp

+ 4 - 0
direct/src/plugin_activex/PPInstance.cpp

@@ -84,6 +84,10 @@ PPInstance::PPInstance( CP3DActiveXCtrl& parentCtrl ) :
 
   m_pluginLoaded = false;
   _failed = false;
+
+  // Ensure this event is initially in the "set" state, in case we
+  // never get a download request before we get a close request.
+  m_eventDownloadStopped.SetEvent( );
 }
 
 PPInstance::~PPInstance(  )