X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=winboard%2Fwsettings.c;h=545071cd9ae638fe4b5e0b52e63abe1b5273b37e;hb=5827df691d2c5fb085eece1b6e81dcb748bf5de9;hp=dbfecfe26fac3b457da0158c529cf1229c8f7490;hpb=74506c0e852b35465c651f331e010ca7e60e7dd3;p=xboard.git diff --git a/winboard/wsettings.c b/winboard/wsettings.c index dbfecfe..545071c 100644 --- a/winboard/wsettings.c +++ b/winboard/wsettings.c @@ -477,7 +477,7 @@ LRESULT CALLBACK SettingsProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lPa "Image files\0*.bmp\0\0"; OPENFILENAME ofn; - safeStrCpy( buf, "" , sizeof( buf)/sizeof( buf[0]) ); + GetDlgItemText( hDlg, i+3, buf, MSG_SIZ ); ZeroMemory( &ofn, sizeof(ofn) ); @@ -499,6 +499,7 @@ LRESULT CALLBACK SettingsProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lPa } } else if(j == -3) { + GetDlgItemText( hDlg, i+3, buf, MSG_SIZ ); if( BrowseForFolder( _("Choose Folder:"), buf ) ) { SetDlgItemText( hDlg, i+3, buf ); } @@ -976,7 +977,7 @@ void TourneyPopup(HWND hwnd) { int n = NamesToList(firstChessProgramNames, engineList, engineMnemonic, ""); autoinc = appData.loadGameIndex < 0 || appData.loadPositionIndex < 0; - twice = FALSE; swiss = appData.tourneyType < 0; + twice = appData.loadGameIndex == -2 || appData.loadPositionIndex == -2; swiss = appData.tourneyType < 0; tourneyOptions[0].max = n; snprintf(title, MSG_SIZ, _("Tournament and Match Options")); ASSIGN(tfName, appData.tourneyFile[0] ? appData.tourneyFile : MakeName(appData.defName));