Commit 1425a8c
authored
ui: Do not pass missing paths to SDL_ShowOpenFileDialog
Passing two levels of invalid paths to `SDL_ShowOpenFileDialog` on Windows
causes a crash. E.g., given a directory `d:\foo` that exists, passing
`D:\foo\bar\baz` will trigger the crash.
In this case, the `FileDialogCallbackWrapper` callback is invoked twice,
leading to a double-free.
Fixes #27851 parent 9e70c5c commit 1425a8c
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
73 | 77 | | |
74 | 78 | | |
75 | 79 | | |
| |||
0 commit comments