X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=winboard%2Fwengineoutput.c;h=96d156c00dc0ce34419b7e357075922b0c64a709;hb=f38964b851874781439f481fd00b3eef6f592603;hp=ad344272143a5af55f1809dd5957dc6121b8af02;hpb=b9ca4bb374bb650af227573139c30630d85d47da;p=xboard.git diff --git a/winboard/wengineoutput.c b/winboard/wengineoutput.c index ad34427..96d156c 100644 --- a/winboard/wengineoutput.c +++ b/winboard/wengineoutput.c @@ -239,7 +239,7 @@ GetMemoLine(HWND hDlg, int x, int y) memo = currentPV ? IDC_EngineMemo2 : IDC_EngineMemo1; index = SendDlgItemMessage( hDlg, memo, EM_CHARFROMPOS, 0, (LPARAM) &pt ); GetDlgItemText(hDlg, memo, buf, sizeof(buf)); - if(LoadMultiPV(x, y, buf, index, &start, &end)) { + if(LoadMultiPV(x, y, buf, index, &start, &end, currentPV)) { SetCapture(hDlg); SendMessage( outputField[currentPV][nMemo], EM_SETSEL, (WPARAM)start, (LPARAM)end ); highTextStart[currentPV] = start; highTextEnd[currentPV] = end;