diff options
author | davygrvy <davygrvy> | 2003-12-16 03:23:03 (GMT) |
---|---|---|
committer | davygrvy <davygrvy> | 2003-12-16 03:23:03 (GMT) |
commit | d4c77e3b0763be105f31d077727a307226605df4 (patch) | |
tree | 42d1318ee968a2d3577b14f797f26e0a7412f734 /win | |
parent | b4990d57a15a5cce82d4ba63535ba18dbb8ff87f (diff) | |
download | tk-d4c77e3b0763be105f31d077727a307226605df4.zip tk-d4c77e3b0763be105f31d077727a307226605df4.tar.gz tk-d4c77e3b0763be105f31d077727a307226605df4.tar.bz2 |
* 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.
Diffstat (limited to 'win')
-rw-r--r-- | win/tkWinWm.c | 5 |
1 files 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; } |