mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-31 14:29:14 +08:00
Clear any previous errors if we successfully show a message box
This commit is contained in:
@@ -4945,6 +4945,8 @@ int SDL_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid)
|
|||||||
if (!*error) {
|
if (!*error) {
|
||||||
SDL_SetError("No message system available");
|
SDL_SetError("No message system available");
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
SDL_ClearError();
|
||||||
}
|
}
|
||||||
|
|
||||||
(void)SDL_AtomicDecRef(&SDL_messagebox_count);
|
(void)SDL_AtomicDecRef(&SDL_messagebox_count);
|
||||||
|
|||||||
Reference in New Issue
Block a user