diff options
-rw-r--r-- | win/tkWinWm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/win/tkWinWm.c b/win/tkWinWm.c index 94c8bb8..6b151cb 100644 --- a/win/tkWinWm.c +++ b/win/tkWinWm.c @@ -8545,12 +8545,13 @@ RemapWindows( 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) { |