From 0ad96b3c66def72f0086d2a89a5441070696cba8 Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Tue, 8 Mar 2016 20:41:41 +0100 Subject: [PATCH] Fix WinBoard compile errors --- winboard/wclipbrd.c | 2 +- winboard/woptions.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/winboard/wclipbrd.c b/winboard/wclipbrd.c index bcefd4c..700ccde 100644 --- a/winboard/wclipbrd.c +++ b/winboard/wclipbrd.c @@ -277,7 +277,6 @@ VOID PasteGameFromString( char * buf ) free(buf); /* [AS] */ return; } - if(!appData.auto if(!appData.autoFlipView) appData.flipView = flipView; LoadGameFromFile(pasteTemp, 0, "Clipboard", TRUE); appData.flipView = flip; @@ -305,6 +304,7 @@ VOID PasteGameOrFENFromClipboard() Board dummyBoard; int dummy; // [HGM] paste any if (!PasteTextFromClipboard(&buf)) { + return; } diff --git a/winboard/woptions.c b/winboard/woptions.c index d4f54d0..e6d6e80 100644 --- a/winboard/woptions.c +++ b/winboard/woptions.c @@ -903,7 +903,7 @@ VariantShowRadio(HWND hDlg) while((j = radioButton[i++]) != -2) { if(j == -1) continue; // no menu button v = VariantName(i-1); p = strstr(first.variants, v); - EnableWindow(GetDlgItem(hDlg, j), appData.noChessProgram || p && (!*v || strlen(v) == strlen[p] || p[strlen[v]] == ',')); + EnableWindow(GetDlgItem(hDlg, j), appData.noChessProgram || p && (!*v || strlen(v) == strlen(p) || p[strlen(v)] == ',')); } *engineVariant = c; for(i=0; i<15; i++) { // initialize engine-defined variants -- 1.7.0.4