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:
parent
166b7f4ffb
commit
f89b14020f
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue