6950553: Applet: IE process crash in OLE32.DLL when playing a sound
Reviewed-by: poonam
This commit is contained in:
parent
225924d47a
commit
b8b9c35567
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user