From: H.G. Muller Date: Mon, 2 May 2011 22:17:47 +0000 (+0200) Subject: Fix error message on engine load X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=af0e7e39409348d713114eb0e41858f552076a21;p=xboard.git Fix error message on engine load --- diff --git a/backend.c b/backend.c index 9e2a6ca..466809b 100644 --- a/backend.c +++ b/backend.c @@ -876,7 +876,7 @@ Load(ChessProgramState *cps, int i) } p = engineName; while(q = strchr(p, SLASH)) p = q+1; - if(*p== NULLCHAR) { DisplayError(_("You did not give an engine executable"), 0); return; } + if(*p== NULLCHAR) { DisplayError(_("You did not specify the engine executable"), 0); return; } if(engineDir[0] != NULLCHAR) appData.directory[i] = engineDir; else if(p != engineName) { // derive directory from engine path, when not given diff --git a/winboard/wsettings.c b/winboard/wsettings.c index 43fcd06..58040c9 100644 --- a/winboard/wsettings.c +++ b/winboard/wsettings.c @@ -644,6 +644,7 @@ void LoadEnginePopUp(HWND hwnd) if(nickName) free(nickName); nickName = strdup(""); if(engineChoice) free(engineChoice); engineChoice = strdup(engineNr[0]); if(engineLine) free(engineLine); engineLine = strdup(""); + if(engineName) free(engineName); engineName = strdup(""); NamesToList(firstChessProgramNames, engineList, engineMnemonic); while(engineList[n]) n++; installOptions[0].max = n; snprintf(title, MSG_SIZ, _("Load Engine"));