diff --git a/dlls/comdlg32/finddlg.c b/dlls/comdlg32/finddlg.c index 8f391b25aa..852763147d 100644 --- a/dlls/comdlg32/finddlg.c +++ b/dlls/comdlg32/finddlg.c @@ -321,7 +321,7 @@ static BOOL COMDLG32_FR_CheckPartial( } if((pfr->wFindWhatLen < 1 || !pfr->lpstrFindWhat) - ||(Replace && (pfr->wReplaceWithLen < 1 || !pfr->lpstrReplaceWith))) + ||(Replace && !pfr->lpstrReplaceWith)) { COMDLG32_SetCommDlgExtendedError(FRERR_BUFFERLENGTHZERO); return FALSE;