winefile: Don't access uninitialized value.

Spotted by Dan Kegel.
This commit is contained in:
Alexander Nicolaysen Sørnes 2008-07-17 19:53:16 +02:00 committed by Alexandre Julliard
parent b69592416c
commit abea9de69b

View file

@ -2708,7 +2708,7 @@ static BOOL calc_widths(Pane* pane, BOOL anyway)
SendMessage(pane->hwnd, LB_SETHORIZONTALEXTENT, x, 0);
/* no change? */
if (!memcmp(orgWidths, pane->widths, sizeof(orgWidths)))
if (!anyway && !memcmp(orgWidths, pane->widths, sizeof(orgWidths)))
return FALSE;
/* don't move, if only collapsing an entry */