Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add null check to SDL_LoadWAV_RW to avoid crashes
Native SDL 1.2 and 2.0 both handle SDL_LoadWAV(null,...), SDL_LoadWAV("",...) and SDL_LoadWAV(nonexistent_file,...) by returning NULL and setting an error; this check resores that behavior. Fixes libsdl-org#310
- Loading branch information