comdlg32: Zero length replace buffer is valid for ReplaceText.

This commit is contained in:
Dylan Smith 2010-07-20 17:49:59 -04:00 committed by Alexandre Julliard
parent f89b14020f
commit 51ba036f6c

View File

@ -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;