SDL_Get*Driver() functions: Set error message on failure
This commit is contained in:
1 parent
ed0a03e9b5
commit
c16b7bcb7a
4 files changed
+4
-2
No files matched your search
@@ -136,6 +136,7 @@ const char *SDL_GetAudioDriver(int index)
|
||||
if (index >= 0 && index < SDL_GetNumAudioDrivers()) {
|
||||
return deduped_bootstrap[index]->name;
|
||||
}
|
||||
SDL_InvalidParamError("index");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user