Fix Windows build break
Commitd879fc7f6b
changed the type of `newpath` and updated all uses in common code. A Windows-only block was skipped. Update that now. Fixes:d879fc7f6b
("Convert file selection to use array<char, N>, not char[N]")
This commit is contained in:
parent
19c5f4064e
commit
4b48e0cd14
|
@ -1781,7 +1781,7 @@ static window_event_result select_file_handler(listbox *menu,const d_event &even
|
|||
}};
|
||||
rval = newmenu_do( NULL, "Enter drive letter", m, unused_newmenu_subfunction, unused_newmenu_userdata );
|
||||
text[1] = '\0';
|
||||
snprintf(newpath, sizeof(char)*PATH_MAX, "%s:%s", text, sep);
|
||||
snprintf(newpath.data(), newpath.size(), "%s:%s", text, sep);
|
||||
if (!rval && text[0])
|
||||
{
|
||||
select_file_recursive(b->title, newpath, b->ext_range, b->select_dir, b->when_selected, b->userdata);
|
||||
|
|
Loading…
Reference in a new issue