From 2253085d898ec0ae8f45f5416855fc64ce8b60ed Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Tue, 6 Mar 2018 23:56:24 +0000 Subject: [PATCH] ac97snd: one more attempt to fix '-h' git-svn-id: svn://kolibrios.org@7176 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/media/ac97snd/ac97snd/ac97wav.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/programs/media/ac97snd/ac97snd/ac97wav.c b/programs/media/ac97snd/ac97snd/ac97wav.c index 157e289622..56883629b9 100644 --- a/programs/media/ac97snd/ac97snd/ac97wav.c +++ b/programs/media/ac97snd/ac97snd/ac97wav.c @@ -497,6 +497,7 @@ void debug_out_str(const char* str) void ExitInHiddenMode() { + status = ST_EXIT; //send message to second process about exit uFMOD_StopSong(); StopBuffer(hBuff); DestroyBuffer(hBuff); @@ -706,7 +707,7 @@ int main(int argc, char *argv[]) if (!LoadFile(full_filename)) return 0; - tid=create_thread(thread_proc, 0, 4096); + if (!hidden) tid=create_thread(thread_proc, 0, 4096); while(1) { delay(10);