提交 d7ee5068 编写于 作者: A amenkov

6950553: Applet: IE process crash in OLE32.DLL when playing a sound

Reviewed-by: poonam
上级 ea742e00
......@@ -53,7 +53,7 @@ FILES_export = \
#
# Extra cc/linker flags.
#
LDLIBS += dsound.lib winmm.lib user32.lib
LDLIBS += dsound.lib winmm.lib user32.lib ole32.lib
CPPFLAGS += \
-DUSE_DAUDIO=TRUE \
-I$(SHARE_SRC)/native/com/sun/media/sound \
......
......@@ -476,6 +476,7 @@ DS_StartBufferHelper::Data::~Data() {
DWORD WINAPI __stdcall DS_StartBufferHelper::ThreadProc(void *param)
{
::CoInitialize(NULL);
while (1) {
// wait for something to do
::WaitForSingleObject(data.startEvent, INFINITE);
......@@ -492,6 +493,7 @@ DWORD WINAPI __stdcall DS_StartBufferHelper::ThreadProc(void *param)
}
::SetEvent(data.startedEvent);
}
::CoUninitialize();
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册