Mikołaj Zalewski : comctl32: listview: Don' t call ScrollColumn with an out of bounds index when resizing the last column .
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Oct 12 15:28:44 CDT 2006
Module: wine
Branch: master
Commit: 056d004b3b83a279791a392ec9d77e30e14f2d81
URL: http://source.winehq.org/git/wine.git/?a=commit;h=056d004b3b83a279791a392ec9d77e30e14f2d81
Author: Mikołaj Zalewski <mikolaj at 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))
{
More information about the wine-cvs
mailing list