From 89c37774aeb1f04f22d6c51f8cd04f2bedf7ed8e Mon Sep 17 00:00:00 2001 From: Spoike Date: Sun, 19 Jun 2022 15:17:29 +0000 Subject: [PATCH] basementApe reported segfaults in the audio init logic. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6263 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/snd_win.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/client/snd_win.c b/engine/client/snd_win.c index fc6536f50..e33694ed5 100644 --- a/engine/client/snd_win.c +++ b/engine/client/snd_win.c @@ -225,8 +225,8 @@ qboolean QDECL WAV_InitCard (soundcardinfo_t *sc, const char *cardname) HRESULT hr; wavhandle_t *wh; - if (*cardname) - return false; //we only support one card, at the moment. + if (cardname && *cardname) + return false; //we don't support explicit devices, so only accept default devices. wh = sc->handle = Z_Malloc(sizeof(wavhandle_t));