Commit f89b1402 authored by Dylan Smith's avatar Dylan Smith Committed by Alexandre Julliard

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.
parent 166b7f4f
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment