mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 06:34:35 +00:00
Check standard error code return values as < 0 instead of == -1
This commit is contained in:
parent
46d9066a69
commit
037541a0e0
29 changed files with 59 additions and 59 deletions
|
|
@ -126,7 +126,7 @@ int main(int argc, char *argv[])
|
|||
haptic = SDL_OpenHapticFromJoystick(joystick);
|
||||
if (haptic) {
|
||||
SDL_Log("Joy Haptic Opened\n");
|
||||
if (SDL_InitHapticRumble(haptic) != 0) {
|
||||
if (SDL_InitHapticRumble(haptic) < 0) {
|
||||
SDL_Log("Could not init Rumble!: %s\n", SDL_GetError());
|
||||
SDL_CloseHaptic(haptic);
|
||||
haptic = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue