mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 544361 - Silverlight 3 doesn't work since XPCOM was removed from plugin processes, it needs CoInitialize, r=cjones
This commit is contained in:
parent
66eda80913
commit
6e0f17ed7c
@ -41,6 +41,10 @@
|
||||
|
||||
#include "nsXPCOM.h"
|
||||
|
||||
#ifdef XP_WIN
|
||||
#include <objbase.h>
|
||||
#endif
|
||||
|
||||
namespace mozilla {
|
||||
namespace ipc {
|
||||
|
||||
@ -57,6 +61,11 @@ MozillaChildThread::Init()
|
||||
{
|
||||
ChildThread::Init();
|
||||
|
||||
#ifdef XP_WIN
|
||||
// Silverlight depends on the host calling CoInitialize.
|
||||
::CoInitialize(NULL);
|
||||
#endif
|
||||
|
||||
// Certain plugins, such as flash, steal the unhandled exception filter
|
||||
// thus we never get crash reports when they fault. This call fixes it.
|
||||
message_loop()->set_exception_restoration(true);
|
||||
@ -68,6 +77,10 @@ void
|
||||
MozillaChildThread::CleanUp()
|
||||
{
|
||||
NS_LogTerm();
|
||||
|
||||
#ifdef XP_WIN
|
||||
::CoUninitialize();
|
||||
#endif
|
||||
}
|
||||
|
||||
} // namespace ipc
|
||||
|
Loading…
Reference in New Issue
Block a user