X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/2d67d0c4acaef2aa527ca60b77832b71bbeca3ad..db9b7dcedb001b942ad945a56b2d7bf9b77d7a6a:/windows/windlg.c?ds=sidebyside diff --git a/windows/windlg.c b/windows/windlg.c index dba4d5fa..9d986238 100644 --- a/windows/windlg.c +++ b/windows/windlg.c @@ -1,3 +1,7 @@ +/* + * windlg.c - dialogs for PuTTY(tel), including the configuration dialog. + */ + #include #include #include @@ -240,11 +244,7 @@ static int SaneDialogBox(HINSTANCE hinst, wc.style = CS_DBLCLKS | CS_SAVEBITS | CS_BYTEALIGNWINDOW; wc.lpfnWndProc = DefDlgProc; wc.cbClsExtra = 0; -#ifdef LONG_PTR wc.cbWndExtra = DLGWINDOWEXTRA + 2*sizeof(LONG_PTR); -#else - wc.cbWndExtra = DLGWINDOWEXTRA + 8; -#endif wc.hInstance = hinst; wc.hIcon = NULL; wc.hCursor = LoadCursor(NULL, IDC_ARROW); @@ -653,7 +653,7 @@ int do_config(void) ctrlbox = ctrl_new_box(); setup_config_box(ctrlbox, FALSE, 0, 0); - win_setup_config_box(ctrlbox, &dp.hwnd, (help_path != NULL), FALSE); + win_setup_config_box(ctrlbox, &dp.hwnd, (help_path != NULL), FALSE, 0); dp_init(&dp); winctrl_init(&ctrls_base); winctrl_init(&ctrls_panel); @@ -685,7 +685,8 @@ int do_reconfig(HWND hwnd, int protcfginfo) ctrlbox = ctrl_new_box(); setup_config_box(ctrlbox, TRUE, cfg.protocol, protcfginfo); - win_setup_config_box(ctrlbox, &dp.hwnd, (help_path != NULL), TRUE); + win_setup_config_box(ctrlbox, &dp.hwnd, (help_path != NULL), TRUE, + cfg.protocol); dp_init(&dp); winctrl_init(&ctrls_base); winctrl_init(&ctrls_panel);