Not sure why there would be a difference, file_dlg_win32.c is the same between master and release-3.4. OTOH, format_handle_wm_initdialog() is only called from export_file_hook_proc() on WM_INITDIALOG, but win32_export_file() has already setup print_args to print_dissections_as_displayed, so I can’t see a user following this code path. Still going to fix the code though.
Thanks, Jaap
It does "blow up" with 3.5.0rc0. Not sure why it works with 3.4.1.
Hi,
In "ui/win32/file_dlg_win32.c"
static void
format_handle_wm_initdialog(HWND dlg_hwnd, print_args_t *args) {
HWND cur_ctrl;
...
switch (args->print_dissections) {
case print_dissections_none:
case print_dissections_collapsed:
SendMessage(cur_ctrl, CB_SETCURSEL, 0, 0);
break;
case print_dissections_as_displayed:
SendMessage(cur_ctrl, CB_SETCURSEL, 1, 0);
break;
case print_dissections_expanded:
SendMessage(cur_ctrl, CB_SETCURSEL, 2, 0);
>> No break statement??
default:
g_assert_not_reached();
}
|