mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-04 17:06:25 +00:00
correct termination of windows openfiledialog filters
This commit is contained in:

committed by
Sam Lantinga

parent
0becdad392
commit
b7dac5072b
@@ -59,7 +59,7 @@ char *convert_filters(const SDL_DialogFileFilter *filters, int nfilters,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
terminator = f[1].name ? separator : suffix;
|
||||
terminator = ((i + 1) < nfilters) ? separator : suffix;
|
||||
new_length = SDL_strlen(combined) + SDL_strlen(converted)
|
||||
+ SDL_strlen(terminator) + 1;
|
||||
|
||||
|
Reference in New Issue
Block a user