From af0e7e39409348d713114eb0e41858f552076a21 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Tue, 3 May 2011 00:17:47 +0200 Subject: [PATCH] Fix error message on engine load --- backend.c | 2 +- winboard/wsettings.c | 1 + 2 files changed, 2 insertions(+), 1 deletions(-) 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")); -- 1.7.0.4