Piotr Caban : comctl32: Fix area invalidated by LISTVIEW_SetItemT.
Alexandre Julliard
julliard at winehq.org
Mon Jun 20 14:24:13 CDT 2011
Module: wine
Branch: master
Commit: 1a67903b04001c7064f6e4705a66dc3cfa47feed
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1a67903b04001c7064f6e4705a66dc3cfa47feed
Author: Piotr Caban <piotr at codeweavers.com>
Date: Mon Jun 20 12:46:37 2011 +0200
comctl32: Fix area invalidated by LISTVIEW_SetItemT.
---
dlls/comctl32/listview.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c
index 1b35c06..119e685 100644
--- a/dlls/comctl32/listview.c
+++ b/dlls/comctl32/listview.c
@@ -4374,6 +4374,9 @@ static BOOL LISTVIEW_SetItemT(LISTVIEW_INFO *infoPtr, LVITEMW *lpLVItem, BOOL is
if (!lpLVItem || lpLVItem->iItem < 0 || lpLVItem->iItem >= infoPtr->nItemCount)
return FALSE;
+ /* Invalidate old item area */
+ LISTVIEW_InvalidateItem(infoPtr, lpLVItem->iItem);
+
/* For efficiency, we transform the lpLVItem->pszText to Unicode here */
if ((lpLVItem->mask & LVIF_TEXT) && is_text(lpLVItem->pszText))
{
More information about the wine-cvs
mailing list