Alexander Nicolaysen Sørnes : winefile: Don't access uninitialized value.

Alexandre Julliard julliard at winehq.org
Fri Jul 18 06:45:33 CDT 2008


Module: wine
Branch: master
Commit: abea9de69bf802de748f48d7e36bf514d6e94426
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=abea9de69bf802de748f48d7e36bf514d6e94426

Author: Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Date:   Thu Jul 17 19:53:16 2008 +0200

winefile: Don't access uninitialized value.

Spotted by Dan Kegel.

---

 programs/winefile/winefile.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/programs/winefile/winefile.c b/programs/winefile/winefile.c
index 79ccbd4..311d580 100644
--- a/programs/winefile/winefile.c
+++ b/programs/winefile/winefile.c
@@ -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 */




More information about the wine-cvs mailing list