summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--win/tkWinWm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/win/tkWinWm.c b/win/tkWinWm.c
index 67c2a6e..290fe3e 100644
--- a/win/tkWinWm.c
+++ b/win/tkWinWm.c
@@ -8635,9 +8635,10 @@ RemapWindows(winPtr, parentHWND)
HWND parentHWND;
{
TkWindow *childPtr;
+ const char *className = Tk_Class(winPtr);
/* Skip Menus as they are handled differently */
- if (strcmp(Tk_Class(winPtr), "Menu") == 0) {
+ if (className != NULL && strcmp(className, "Menu") == 0) {
return;
}
if (winPtr->window) {