Alexandre Julliard : user32: Remove left-over freeing of the edit text with ES_PASSWORD.
Module: wine Branch: master Commit: 766768f033fe03ae0d5b63ab04f12203d6c26c03 URL: http://source.winehq.org/git/wine.git/?a=commit;h=766768f033fe03ae0d5b63ab04... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Mar 30 19:07:37 2015 +0900 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 4b29f03..67adefb 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)
participants (1)
-
Alexandre Julliard