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.
This commit is contained in:
Dylan Smith 2010-07-20 17:49:49 -04:00 committed by Alexandre Julliard
parent 166b7f4ffb
commit f89b14020f
1 changed files with 1 additions and 1 deletions

View File

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