mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 21:32:45 +00:00
MSVC2003 buildfix - (#11915)
* MIIM_STRING and MIIM_FTYPE only available if WINVER is higher than or equal to 0x0500
This commit is contained in:
parent
39e84fd5b2
commit
cff0a4e202
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user