From fe2fa12d52e58ecddfa4c2d03a2331aad3daeb71 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Wed, 12 Oct 2011 17:38:33 +0200 Subject: [PATCH] Fix invalid combobox entry WB A combobox label that was not in the list (because the user typed it, rather than selecting one) would cause a crash. --- winboard/wsettings.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/winboard/wsettings.c b/winboard/wsettings.c index 22b182c..509b6d4 100644 --- a/winboard/wsettings.c +++ b/winboard/wsettings.c @@ -389,7 +389,7 @@ GetOptionValues(HWND hDlg, ChessProgramState *cps, Option *optionList) for(k=0; k 0) { if(*(char**)optionList[j].target) free(*(char**)optionList[j].target); *(char**)optionList[j].target = strdup(optionList[j].choice[new]); break; -- 1.7.0.4