TREEVIEW: fix if firstVisible is null
Steve Lustbader
slustbader at verizon.net
Sun Feb 29 15:00:34 CST 2004
This fixes an error I encounted in MX-Editor on startup.
ChangeLog:
* Handle the firstVisible item being NULL in TREEVIEW_UpdateScrollBars().
Index: dlls/comctl32/treeview.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/treeview.c,v
retrieving revision 1.144
diff -u -r1.144 treeview.c
--- dlls/comctl32/treeview.c 16 Feb 2004 22:19:29 -0000 1.144
+++ dlls/comctl32/treeview.c 29 Feb 2004 20:52:56 -0000
@@ -2599,7 +2599,7 @@
if (vert)
{
si.nPage = TREEVIEW_GetVisibleCount(infoPtr);
- if ( si.nPage )
+ if ( si.nPage && NULL != infoPtr->firstVisible)
{
si.nPos = infoPtr->firstVisible->visibleOrder;
si.nMax = infoPtr->maxVisibleOrder - 1;
More information about the wine-patches
mailing list