Commit f3ea345b authored by James Hatheway's avatar James Hatheway Committed by Alexandre Julliard

Guard against incoming string of NULL in WM_SETTEXT.

parent 0b47b289
......@@ -4467,11 +4467,11 @@ static void EDIT_WM_SetFont(WND *wnd, EDITSTATE *es, HFONT font, BOOL redraw)
*/
static void EDIT_WM_SetText(WND *wnd, EDITSTATE *es, LPARAM lParam, BOOL unicode)
{
LPWSTR text;
LPWSTR text = NULL;
if(unicode)
text = (LPWSTR)lParam;
else
else if (lParam)
{
LPCSTR textA = (LPCSTR)lParam;
INT countW = MultiByteToWideChar(CP_ACP, 0, textA, -1, NULL, 0);
......
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