It's getFactory that may be NULL, not its return value...

This commit is contained in:
Chris Robinson
2017-11-26 09:59:55 -08:00
parent d96be76875
commit 5993ef0baa
+4 -3
View File
@@ -1290,15 +1290,16 @@ static void alc_deinit(void)
************************************************/
static void ProbeDevices(al_string *list, struct BackendInfo *backendinfo, enum DevProbe type)
{
ALCbackendFactory *factory;
DO_INITCONFIG();
LockLists();
alstr_clear(list);
if((factory=backendinfo->getFactory()) != NULL)
if(backendinfo->getFactory)
{
ALCbackendFactory *factory = backendinfo->getFactory();
V(factory,probe)(type);
}
UnlockLists();
}