Module: wine Branch: master Commit: f89b14020f83824cfc8dc81b7991382d65c1c07d URL: http://source.winehq.org/git/wine.git/?a=commit;h=f89b14020f83824cfc8dc81b79...
Author: Dylan Smith dylan.ah.smith@gmail.com Date: Tue Jul 20 17:49:49 2010 -0400
comdlg32: Check for valid replace parameters on ReplaceTextW.
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,