Forráskód Böngészése

first attempt to fix deadlock on Pirates launch

David Rose 16 éve
szülő
commit
430800a43e
1 módosított fájl, 4 hozzáadás és 0 törlés
  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(  )