mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-12 17:35:38 +00:00
Clear any previous errors if we successfully show a message box
This commit is contained in:
parent
343da852a6
commit
552bee47cb
1 changed files with 2 additions and 0 deletions
|
|
@ -4945,6 +4945,8 @@ int SDL_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid)
|
|||
if (!*error) {
|
||||
SDL_SetError("No message system available");
|
||||
}
|
||||
} else {
|
||||
SDL_ClearError();
|
||||
}
|
||||
|
||||
(void)SDL_AtomicDecRef(&SDL_messagebox_count);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue