[1/3] comdlg32: Check for valid replace parameters on ReplaceTextW.
Dylan Smith
dylan.ah.smith at gmail.com
Tue Jul 20 16:49:49 CDT 2010
COMDLG32_FR_CheckPartial is called with the second parameter of TRUE to
indicate that it is checking for a replace dialog, which includes checking
for a non-NULL replace buffer. This was called correctly on ReplaceTextA
but not for ReplaceTextW.
---
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 f6c780e..8f391b2 100644
--- a/dlls/comdlg32/finddlg.c
+++ b/dlls/comdlg32/finddlg.c
@@ -536,7 +536,7 @@ HWND WINAPI ReplaceTextW(
TRACE("LPFINDREPLACE=%p\n", pfr);
- if(!COMDLG32_FR_CheckPartial((LPFINDREPLACEA)pfr, FALSE))
+ if(!COMDLG32_FR_CheckPartial((LPFINDREPLACEA)pfr, TRUE))
return 0;
len1 = WideCharToMultiByte( CP_ACP, 0, pfr->lpstrFindWhat, pfr->wFindWhatLen,
--
1.7.0.4
More information about the wine-patches
mailing list