MSVC2003 buildfix - (#11915)

* MIIM_STRING and MIIM_FTYPE only available if WINVER is higher than
or equal to 0x0500
This commit is contained in:
Autechre 2021-01-21 03:07:46 +01:00 committed by GitHub
parent 39e84fd5b2
commit cff0a4e202
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1824,7 +1824,11 @@ static void win32_localize_menu(HMENU menu)
memset(&menuItemInfo, 0, sizeof(menuItemInfo));
menuItemInfo.cbSize = sizeof(menuItemInfo);
menuItemInfo.dwTypeData = NULL;
#if(WINVER >= 0x0500)
menuItemInfo.fMask = MIIM_STRING | MIIM_FTYPE | MIIM_ID | MIIM_STATE | MIIM_SUBMENU;
#else
menuItemInfo.fMask = MIIM_ID | MIIM_STATE | MIIM_SUBMENU;
#endif
#ifndef LEGACY_WIN32
okay = GetMenuItemInfoW(menu, index, true, &menuItemInfo);