Commit 51ba036f authored by Dylan Smith's avatar Dylan Smith Committed by Alexandre Julliard

comdlg32: Zero length replace buffer is valid for ReplaceText.

parent f89b1402
...@@ -321,7 +321,7 @@ static BOOL COMDLG32_FR_CheckPartial( ...@@ -321,7 +321,7 @@ static BOOL COMDLG32_FR_CheckPartial(
} }
if((pfr->wFindWhatLen < 1 || !pfr->lpstrFindWhat) if((pfr->wFindWhatLen < 1 || !pfr->lpstrFindWhat)
||(Replace && (pfr->wReplaceWithLen < 1 || !pfr->lpstrReplaceWith))) ||(Replace && !pfr->lpstrReplaceWith))
{ {
COMDLG32_SetCommDlgExtendedError(FRERR_BUFFERLENGTHZERO); COMDLG32_SetCommDlgExtendedError(FRERR_BUFFERLENGTHZERO);
return FALSE; return FALSE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment