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

Reviewed-by: poonam
This commit is contained in:
Alex Menkov 2010-11-02 14:59:39 +03:00
parent 225924d47a
commit b8b9c35567
2 changed files with 3 additions and 1 deletions

View File

@ -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 \

View File

@ -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;
}