Commit 766768f0 authored by Alexandre Julliard's avatar Alexandre Julliard

user32: Remove left-over freeing of the edit text with ES_PASSWORD.

parent 47ef8ebc
......@@ -2194,12 +2194,9 @@ static INT EDIT_PaintText(EDITSTATE *es, HDC dc, INT x, INT y, INT line, INT col
ret = (INT)LOWORD(TabbedTextOutW(dc, x, y, es->text + li + col, count,
es->tabs_count, es->tabs, es->format_rect.left - es->x_offset));
} else {
LPWSTR text = es->text;
TextOutW(dc, x, y, text + li + col, count);
GetTextExtentPoint32W(dc, text + li + col, count, &size);
TextOutW(dc, x, y, es->text + li + col, count);
GetTextExtentPoint32W(dc, es->text + li + col, count, &size);
ret = size.cx;
if (es->style & ES_PASSWORD)
HeapFree(GetProcessHeap(), 0, text);
}
if (rev) {
if (es->composition_len == 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