mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-20 13:06:05 +00:00
Cleanup of SDL_SetError that already return -1 value
This commit is contained in:
parent
3e70553c48
commit
16824865c2
4 changed files with 7 additions and 14 deletions
|
|
@ -92,8 +92,7 @@ SDL_LockMutex(SDL_mutex * mutex)
|
|||
{
|
||||
if (mutex == NULL)
|
||||
{
|
||||
SDL_SetError("Passed a NULL mutex.");
|
||||
return -1;
|
||||
return SDL_SetError("Passed a NULL mutex.");
|
||||
}
|
||||
|
||||
RMutex rmutex;
|
||||
|
|
@ -109,8 +108,7 @@ SDL_UnlockMutex(SDL_mutex * mutex)
|
|||
{
|
||||
if ( mutex == NULL )
|
||||
{
|
||||
SDL_SetError("Passed a NULL mutex.");
|
||||
return -1;
|
||||
return SDL_SetError("Passed a NULL mutex.");
|
||||
}
|
||||
|
||||
RMutex rmutex;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue