From 430800a43ecae0ea0fbf9d11dbfdc9bca86005be Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 18 Feb 2010 02:14:53 +0000 Subject: [PATCH] first attempt to fix deadlock on Pirates launch --- direct/src/plugin_activex/PPInstance.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/direct/src/plugin_activex/PPInstance.cpp b/direct/src/plugin_activex/PPInstance.cpp index 8372032b6f..85363c177a 100644 --- a/direct/src/plugin_activex/PPInstance.cpp +++ b/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( )