GetMenu might be used to get child window id.

diff --git a/controls/menu.c b/controls/menu.c
index 568b250..6c60391 100644
--- a/controls/menu.c
+++ b/controls/menu.c
@@ -4036,16 +4036,15 @@
  *         GetMenu    (USER32.257)
  */
 HMENU WINAPI GetMenu( HWND hWnd ) 
-{ 
+{
     HMENU retvalue;
     WND * wndPtr = WIN_FindWndPtr(hWnd);
-    if (wndPtr && !(wndPtr->dwStyle & WS_CHILD)) 
-    {
-        retvalue = (HMENU)wndPtr->wIDmenu;
-        goto END;
-    }
-    retvalue = 0;
-END:
+
+    if (!wndPtr) return 0;
+
+    retvalue = (HMENU)wndPtr->wIDmenu;
+    TRACE("for %swindow %04x returning %04x\n",
+          (wndPtr->dwStyle & WS_CHILD) ? "child " : "", hWnd, retvalue);
     WIN_ReleaseWndPtr(wndPtr);
     return retvalue;
 }