[2/3] comdlg32: Zero length replace buffer is valid for ReplaceText.
Dylan Smith
dylan.ah.smith at gmail.com
Tue Jul 20 16:49:59 CDT 2010
This will just cause the text to be deleted instead of being replaced.
---
dlls/comdlg32/finddlg.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/comdlg32/finddlg.c b/dlls/comdlg32/finddlg.c
index 8f391b2..8527631 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;
--
1.7.0.4
More information about the wine-patches
mailing list