SDL_Get*Driver() functions: Set error message on failure
This commit is contained in:
committed by
Sam Lantinga
parent
ed0a03e9b5
commit
c16b7bcb7a
@@ -74,6 +74,7 @@ const char *SDL_GetCameraDriver(int index)
|
||||
if (index >= 0 && index < SDL_GetNumCameraDrivers()) {
|
||||
return bootstrap[index]->name;
|
||||
}
|
||||
SDL_InvalidParamError("index");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user