From 5f6080ee056bf9f3dd84e78e99c54ade6b93e0d5 Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Sun, 14 Nov 1999 23:53:41 +0000 Subject: [PATCH] Removed suicide code when playback thread's father dies. --- dlls/dsound/dsound_main.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/dlls/dsound/dsound_main.c b/dlls/dsound/dsound_main.c index 788e80119b7..e82831b59d5 100644 --- a/dlls/dsound/dsound_main.c +++ b/dlls/dsound/dsound_main.c @@ -2213,11 +2213,19 @@ 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); } - /* RACE: dsound could be deleted */ +#endif + /* RACE: dsound could be deleted */ IDirectSound_AddRef((LPDIRECTSOUND)dsound); if (primarybuf == NULL) { /* Should never happen */