summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorwolfsuit <wolfsuit>2002-09-23 07:21:12 (GMT)
committerwolfsuit <wolfsuit>2002-09-23 07:21:12 (GMT)
commit7e4e181ce13739eb395e757f31d400dbbbf0eeba (patch)
tree7a1ed7bb5fe938a01683b8ed475536d789631780 /macosx
parent5549645ef013251dfc7bea7bc3c2837849766278 (diff)
downloadtk-7e4e181ce13739eb395e757f31d400dbbbf0eeba.zip
tk-7e4e181ce13739eb395e757f31d400dbbbf0eeba.tar.gz
tk-7e4e181ce13739eb395e757f31d400dbbbf0eeba.tar.bz2
In TkpIsWindowFloating, check for NULL before passing the wRef
to GetWindowClass.
Diffstat (limited to 'macosx')
-rw-r--r--macosx/tkMacOSXWm.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/macosx/tkMacOSXWm.c b/macosx/tkMacOSXWm.c
index 633e305..a8cf4ab 100644
--- a/macosx/tkMacOSXWm.c
+++ b/macosx/tkMacOSXWm.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: tkMacOSXWm.c,v 1.4 2002/09/09 23:52:02 hobbs Exp $
+ * RCS: @(#) $Id: tkMacOSXWm.c,v 1.5 2002/09/23 07:21:12 wolfsuit Exp $
*/
#include <Carbon/Carbon.h>
@@ -5214,6 +5214,11 @@ int
TkpIsWindowFloating(WindowRef wRef)
{
WindowClass class;
+
+ if (wRef == NULL) {
+ return 0;
+ }
+
GetWindowClass(wRef, &class);
return (class == kFloatingWindowClass);
}