]> granicus.if.org Git - nethack/commitdiff
Win32GUI: Allow empty separator lines in menus
authorPasi Kallinen <paxed@alt.org>
Sun, 17 Sep 2017 09:17:46 +0000 (12:17 +0300)
committerPasi Kallinen <paxed@alt.org>
Sun, 17 Sep 2017 09:17:46 +0000 (12:17 +0300)
win/win32/mhmenu.c

index 28a37a25698f5ac677454e929910ffb06099eba5..9d9e17a1f1ad0b689323aa9492dcf023f2d82a68 100644 (file)
@@ -586,8 +586,6 @@ onMSNHCommand(HWND hWnd, WPARAM wParam, LPARAM lParam)
 
         if (data->type != MENU_TYPE_MENU)
             break;
-        if (strlen(msg_data->str) == 0)
-            break;
 
         if (data->menu.size == data->menu.allocated) {
             data->menu.allocated += 10;