mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-21 15:56:58 +02:00
Fix a bounds check in ma_get_backend_name().
This commit is contained in:
+1
-1
@@ -17665,7 +17665,7 @@ static ma_backend_info gBackendInfo[] = /* Indexed by the backend enum. Must be
|
||||
|
||||
MA_API const char* ma_get_backend_name(ma_backend backend)
|
||||
{
|
||||
if (backend >= ma_countof(gBackendInfo)) {
|
||||
if (backend < 0 || backend >= ma_countof(gBackendInfo)) {
|
||||
return "Unknown";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user