Removed suicide code when playback thread's father dies.

This commit is contained in:
Eric Pouech 1999-11-14 23:53:41 +00:00 committed by Alexandre Julliard
parent 46e8fff46d
commit 5f6080ee05
1 changed files with 9 additions and 1 deletions

View File

@ -2213,10 +2213,18 @@ static DWORD WINAPI DSOUND_thread(LPVOID arg)
WARN("DSOUND thread giving up.\n");
ExitThread(0);
}
#if 0
/* EP: since the thread creating this thread can
* die before the end of the DSOUND one, this
* test is of no use
* What shall be tested is whether the DSOUND thread
* is the last one in the process
*/
if (getppid()==1) {
WARN("DSOUND father died? Giving up.\n");
ExitThread(0);
}
#endif
/* RACE: dsound could be deleted */
IDirectSound_AddRef((LPDIRECTSOUND)dsound);
if (primarybuf == NULL) {