From f13be049801650774a426f3d0acf1e8747a1ee6d Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Sat, 13 Jul 2024 17:06:54 +0200 Subject: [PATCH] testaudio: use SDL_APP_FAILURE macro to signal failure --- test/testaudio.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/testaudio.c b/test/testaudio.c index 728f4b670..3509ee722 100644 --- a/test/testaudio.c +++ b/test/testaudio.c @@ -1119,12 +1119,12 @@ int SDL_AppInit(void **appstate, int argc, char *argv[]) SetDefaultTitleBar(); - if ((physdev_texture = CreateTexture("physaudiodev.bmp")) == NULL) { return -1; } - if ((logdev_texture = CreateTexture("logaudiodev.bmp")) == NULL) { return -1; } - if ((audio_texture = CreateTexture("audiofile.bmp")) == NULL) { return -1; } - if ((trashcan_texture = CreateTexture("trashcan.bmp")) == NULL) { return -1; } - if ((soundboard_texture = CreateTexture("soundboard.bmp")) == NULL) { return -1; } - if ((soundboard_levels_texture = CreateTexture("soundboard_levels.bmp")) == NULL) { return -1; } + if ((physdev_texture = CreateTexture("physaudiodev.bmp")) == NULL) { return SDL_APP_FAILURE; } + if ((logdev_texture = CreateTexture("logaudiodev.bmp")) == NULL) { return SDL_APP_FAILURE; } + if ((audio_texture = CreateTexture("audiofile.bmp")) == NULL) { return SDL_APP_FAILURE; } + if ((trashcan_texture = CreateTexture("trashcan.bmp")) == NULL) { return SDL_APP_FAILURE; } + if ((soundboard_texture = CreateTexture("soundboard.bmp")) == NULL) { return SDL_APP_FAILURE; } + if ((soundboard_levels_texture = CreateTexture("soundboard_levels.bmp")) == NULL) { return SDL_APP_FAILURE; } LoadStockWavThings(); CreateTrashcanThing();