We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcdbc0b commit 8ddb074Copy full SHA for 8ddb074
src/dialog/windows/SDL_windowsdialog.c
@@ -273,7 +273,7 @@ void windows_ShowFileDialog(void *ptr)
273
SDL_strlcpy(chosen_file, chosen_folder, MAX_PATH);
274
chosen_file[chosen_folder_size] = '\\';
275
276
- file_ptr += SDL_strlen(chosen_folder) + 1;
+ file_ptr += SDL_wcslen(file_ptr) + 1;
277
278
while (*file_ptr) {
279
nfiles++;
@@ -308,7 +308,7 @@ void windows_ShowFileDialog(void *ptr)
308
return;
309
}
310
311
- file_ptr += SDL_strlen(chosen_file) + 1 - diff;
312
313
chosen_files_list[nfiles - 1] = SDL_strdup(chosen_file);
314
0 commit comments