From 766768f033fe03ae0d5b63ab04f12203d6c26c03 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 30 Mar 2015 19:07:37 +0900 Subject: [PATCH] user32: Remove left-over freeing of the edit text with ES_PASSWORD. --- dlls/user32/edit.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/dlls/user32/edit.c b/dlls/user32/edit.c index 4b29f03d8ab..67adefb0bc6 100644 --- a/dlls/user32/edit.c +++ b/dlls/user32/edit.c @@ -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) -- 2.11.4.GIT