Commit 5800544
authored
[BOX32] Fix copy-paste bug in SDL_ShowMessageBox (#3619)
In my32_2_SDL_ShowMessageBox, the loop converting 32-bit
SDL_MessageBoxButtonData to 64-bit incorrectly read src[i].buttonid
for all three fields instead of src[i].flags and src[i].text.
This caused the button text pointer to be set to a small integer,
resulting in a SIGSEGV when native SDL tried
to read the text string.1 parent 9a394d3 commit 5800544
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
772 | 772 | | |
773 | 773 | | |
774 | 774 | | |
775 | | - | |
| 775 | + | |
776 | 776 | | |
777 | | - | |
| 777 | + | |
778 | 778 | | |
779 | 779 | | |
780 | 780 | | |
| |||
0 commit comments