X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d9d14984ff9f41ab86d01f0db28b50e4ae9774d6..09155be84e2240da3977cf3629c42d412177a570:/src/mac/carbon/menu.cpp diff --git a/src/mac/carbon/menu.cpp b/src/mac/carbon/menu.cpp index b58d8e5d83..cb3ae485a8 100644 --- a/src/mac/carbon/menu.cpp +++ b/src/mac/carbon/menu.cpp @@ -504,7 +504,13 @@ void wxMenuBar::MacInstallMenuBar() wxStAppResource resload ; - MenuBarHandle menubar = NewHandleClear( 6 /* sizeof( MenuBarHeader ) */ ) ; + MenuBarHandle menubar = NULL ; +#if TARGET_API_MAC_OSX + menubar = NewHandleClear( 6 /* sizeof( MenuBarHeader ) */ ) ; +#else + menubar = NewHandleClear( 12 ) ; + (*menubar)[3] = 0x0a ; +#endif ::SetMenuBar( menubar ) ; DisposeMenuBar( menubar ) ; MenuHandle appleMenu = NULL ;