mirror of
https://github.com/encounter/SDL.git
synced 2025-12-17 00:47:15 +00:00
use SDL_InvalidParamError or SDL_assert instead of custom SDL_SetError
This commit is contained in:
@@ -41,7 +41,7 @@ SDL_LoadObject(const char *sofile)
|
||||
PSZ pszModName;
|
||||
|
||||
if (!sofile) {
|
||||
SDL_SetError("NULL sofile");
|
||||
SDL_InvalidParamError("sofile");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ SDL_LoadObject(const char *sofile)
|
||||
LPTSTR tstr;
|
||||
|
||||
if (!sofile) {
|
||||
SDL_SetError("NULL sofile");
|
||||
SDL_InvalidParamError("sofile");
|
||||
return NULL;
|
||||
}
|
||||
tstr = WIN_UTF8ToString(sofile);
|
||||
|
||||
Reference in New Issue
Block a user