Fix build warning issue by using v140_xp

This commit is contained in:
Don HO 2020-09-12 16:32:53 +02:00
parent c5e594e3ea
commit 00841d5a22
1 changed files with 6 additions and 4 deletions

View File

@ -1465,7 +1465,8 @@ INT_PTR CALLBACK FindReplaceDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM
case IDNORMAL:
case IDEXTENDED:
case IDREGEXP : {
case IDREGEXP :
{
if (isCheckedOrNot(IDREGEXP))
{
_options._searchType = FindRegex;
@ -1503,15 +1504,16 @@ INT_PTR CALLBACK FindReplaceDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM
enableFindDlgItem(IDWHOLEWORD, !isRegex);
// regex upward search is disabled
BOOL doEnable = TRUE;
bool doEnable = true;
if (isRegex && !nppParamInst.regexBackward4PowerUser())
{
doEnable = FALSE;
doEnable = false;
}
enableFindDlgItem(IDC_BACKWARDDIRECTION, doEnable);
enableFindDlgItem(IDC_FINDPREV, doEnable);
return TRUE; }
return TRUE;
}
case IDWRAP :
findHistory._isWrap = _options._isWrapAround = isCheckedOrNot(IDWRAP);