summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXWm.c
diff options
context:
space:
mode:
authorwolfsuit <wolfsuit>2002-09-23 07:21:12 (GMT)
committerwolfsuit <wolfsuit>2002-09-23 07:21:12 (GMT)
commit9d39af9b3b23ffa1059f38b1f057ce62d6bfbc2f (patch)
tree7a1ed7bb5fe938a01683b8ed475536d789631780 /macosx/tkMacOSXWm.c
parent0a6987bf1aa9624aa11887c593c5330dc4f0ebb8 (diff)
downloadtk-9d39af9b3b23ffa1059f38b1f057ce62d6bfbc2f.zip
tk-9d39af9b3b23ffa1059f38b1f057ce62d6bfbc2f.tar.gz
tk-9d39af9b3b23ffa1059f38b1f057ce62d6bfbc2f.tar.bz2
In TkpIsWindowFloating, check for NULL before passing the wRef
to GetWindowClass.
Diffstat (limited to 'macosx/tkMacOSXWm.c')
-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);
}