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
This commit is contained in:
Spoike 2022-06-19 15:17:29 +00:00
parent f1c714a187
commit 89c37774ae
1 changed files with 2 additions and 2 deletions

View File

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