X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=winboard%2Fwinboard.c;h=519f9240d1d29117b8bfc918e292703e9a5b2902;hb=e9c8ca5c16307c2366d4128507b57f7a0d4e6a2b;hp=293b643e9a5b3653501b39f1870bda687555d3e1;hpb=0c326a397b77561e9cd232549eb98c756f5a8baf;p=xboard.git diff --git a/winboard/winboard.c b/winboard/winboard.c index 293b643..519f924 100644 --- a/winboard/winboard.c +++ b/winboard/winboard.c @@ -6451,11 +6451,12 @@ StartupDialog(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) safeStrCpy(buf, "/fcp=", sizeof(buf)/sizeof(buf[0]) ); GetDlgItemText(hDlg, OPT_ChessEngineName, buf + strlen(buf), sizeof(buf) - strlen(buf)); p = buf; - comboLine = strdup(p+5); // [HGM] recent: remember complete line of first combobox + currentEngine[0] = strdup(p+5); // [HGM] recent: remember complete line of first combobox ParseArgs(StringGet, &p); safeStrCpy(buf, singleList ? "/fcp=" : "/scp=", sizeof(buf)/sizeof(buf[0]) ); GetDlgItemText(hDlg, OPT_SecondChessEngineName, buf + strlen(buf), sizeof(buf) - strlen(buf)); p = buf; + currentEngine[1] = strdup(p+5); // [HGM] also remember engine line of 2nd for saving its settings SwapEngines(singleList); // temporarily swap first and second, to load a second 'first', ... ParseArgs(StringGet, &p); SwapEngines(singleList); // ... and then make it 'second'