Trace if a driver was found for a device name

This commit is contained in:
Chris Robinson
2017-07-05 12:16:28 -07:00
parent 72ce0d1e9c
commit 3af2ff7b25
+4
View File
@@ -316,10 +316,14 @@ static ALint GetDriverIndexForName(const EnumeratedList *list, const ALCchar *na
while(devnames && *devnames)
{
if(strcmp(name, devnames) == 0)
{
TRACE("Found driver %d for name \"%s\"\n", *index, name);
return *index;
}
devnames += strlen(devnames)+1;
index++;
}
TRACE("Failed to find driver for name \"%s\"\n", name);
return -1;
}