diff --git a/ep_gui/GUI.c b/ep_gui/GUI.c index 0aa86a3..0c08253 100644 --- a/ep_gui/GUI.c +++ b/ep_gui/GUI.c @@ -2575,26 +2575,17 @@ static BOOL GUI_Build(HDC hDC, HWND hwnd, POINT pt) { if (IsWindows11Build25346OrHigher()) { + // Hide the win8 network flyout as an option on Win 11 after 25346 as van.dll was removed MENUITEMINFOA menuInfo; ZeroMemory(&menuInfo, sizeof(MENUITEMINFOA)); menuInfo.cbSize = sizeof(MENUITEMINFOA); menuInfo.fMask = MIIM_DATA; - - // Hide the win8 network flyout as an option on Win 11 after 25346 as van.dll was removed GetMenuItemInfoA(hMenu, 3, FALSE, &menuInfo); if (menuInfo.dwItemData) { free(menuInfo.dwItemData); } RemoveMenu(hMenu, 3, MF_BYCOMMAND); - - // Hide the control center option as this doesn't work either - GetMenuItemInfoA(hMenu, 7, FALSE, &menuInfo); - if (menuInfo.dwItemData) - { - free(menuInfo.dwItemData); - } - RemoveMenu(hMenu, 7, MF_BYCOMMAND); } } HKEY hKey = NULL;