From d4c77e3b0763be105f31d077727a307226605df4 Mon Sep 17 00:00:00 2001 From: davygrvy Date: Tue, 16 Dec 2003 03:23:03 +0000 Subject: * win/tkWinWm.c (UpdateGeometryInfo) : wmPtr->wrapper might be NULL. No exception is thrown, but it isn't correct to ignore. discovered with NuMega's BoundsChecker. --- win/tkWinWm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/win/tkWinWm.c b/win/tkWinWm.c index 57d823b..c612e64 100644 --- a/win/tkWinWm.c +++ b/win/tkWinWm.c @@ -12,7 +12,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkWinWm.c,v 1.56 2003/12/09 13:43:35 vincentdarley Exp $ + * RCS: @(#) $Id: tkWinWm.c,v 1.57 2003/12/16 03:23:03 davygrvy Exp $ */ #include "tkWinInt.h" @@ -5034,7 +5034,8 @@ UpdateGeometryInfo(clientData) * state of the window changes. */ - if (IsIconic(wmPtr->wrapper) || IsZoomed(wmPtr->wrapper)) { + if (wmPtr->wrapper && IsIconic(wmPtr->wrapper) || + IsZoomed(wmPtr->wrapper)) { return; } -- cgit v0.12