From 9d39af9b3b23ffa1059f38b1f057ce62d6bfbc2f Mon Sep 17 00:00:00 2001 From: wolfsuit Date: Mon, 23 Sep 2002 07:21:12 +0000 Subject: In TkpIsWindowFloating, check for NULL before passing the wRef to GetWindowClass. --- macosx/tkMacOSXWm.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 @@ -5214,6 +5214,11 @@ int TkpIsWindowFloating(WindowRef wRef) { WindowClass class; + + if (wRef == NULL) { + return 0; + } + GetWindowClass(wRef, &class); return (class == kFloatingWindowClass); } -- cgit v0.12