Module: wine Branch: master Commit: 056d004b3b83a279791a392ec9d77e30e14f2d81 URL: http://source.winehq.org/git/wine.git/?a=commit;h=056d004b3b83a279791a392ec9...
Author: Mikołaj Zalewski mikolaj@zalewski.pl Date: Wed Oct 11 20:43:47 2006 +0200
comctl32: listview: Don't call ScrollColumn with an out of bounds index when resizing the last column.
---
dlls/comctl32/listview.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index 8d4fc6d..7c6c7a3 100644 --- a/dlls/comctl32/listview.c +++ b/dlls/comctl32/listview.c @@ -8582,7 +8582,8 @@ static LRESULT LISTVIEW_HeaderNotificati if (dx != 0) { lpColumnInfo->rcHeader.right += dx; - LISTVIEW_ScrollColumns(infoPtr, lpnmh->iItem + 1, dx); + if (lpnmh->iItem + 1 < DPA_GetPtrCount(infoPtr->hdpaColumns)) + LISTVIEW_ScrollColumns(infoPtr, lpnmh->iItem + 1, dx); LISTVIEW_UpdateItemSize(infoPtr); if (uView == LVS_REPORT && is_redrawing(infoPtr)) {