@@ -1171,8 +1171,6 @@ static BOOL GUI_Build(HDC hDC, HWND hwnd, POINT pt)
11711171 else if (!_stricmp (funcName , "!IsOldTaskbar" ) && GUI_GetTaskbarStyle (TRUE) != 0 ) bSkipLines = TRUE;
11721172 else if (!_stricmp (funcName , "IsStockWin10Taskbar" ) && GUI_GetTaskbarStyle (TRUE) != 1 ) bSkipLines = TRUE;
11731173 else if (!_stricmp (funcName , "IsAltImplTaskbar" ) && GUI_GetTaskbarStyle (TRUE) <= 1 ) bSkipLines = TRUE;
1174- else if (!_stricmp (funcName , "DoesTaskbarDllExist" ) && !DoesTaskbarDllExist ()) bSkipLines = TRUE;
1175- else if (!_stricmp (funcName , "!DoesTaskbarDllExist" ) && DoesTaskbarDllExist ()) bSkipLines = TRUE;
11761174 else if (!_stricmp (funcName , "!IsStockWindows10TaskbarAvailable" ) && !(!IsStockWindows10TaskbarAvailable () && GUI_GetTaskbarStyle (FALSE) == 1 )) bSkipLines = TRUE;
11771175 else if (!_stricmp (funcName , "IsWindows10StartMenu" ) && (!DoesWindows10StartMenuExist () || (dwRes = 0 , RegGetValueW (HKEY_CURRENT_USER , L"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced" , L"Start_ShowClassicMode" , RRF_RT_DWORD , NULL , & dwRes , & dwSize ), (dwRes != 1 )))) bSkipLines = TRUE;
11781176 else if (!_stricmp (funcName , "!IsWindows10StartMenu" ) && (DoesWindows10StartMenuExist () && (dwRes = 0 , RegGetValueW (HKEY_CURRENT_USER , L"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced" , L"Start_ShowClassicMode" , RRF_RT_DWORD , NULL , & dwRes , & dwSize ), (dwRes == 1 )))) bSkipLines = TRUE;
@@ -2516,7 +2514,7 @@ static BOOL GUI_Build(HDC hDC, HWND hwnd, POINT pt)
25162514 bShouldAlterTaskbarDa = TRUE;
25172515 }
25182516 }
2519- if (!wcscmp (name , L"Virtualized_" _T (EP_CLSID ) L"_TaskbarPosition" ) || !wcscmp (name , L"Virtualized_" _T (EP_CLSID ) L"_MMTaskbarPosition" ))
2517+ else if (!wcscmp (name , L"Virtualized_" _T (EP_CLSID ) L"_TaskbarPosition" ) || !wcscmp (name , L"Virtualized_" _T (EP_CLSID ) L"_MMTaskbarPosition" ))
25202518 {
25212519 if (GUI_TaskbarStyle == 0 )
25222520 {
@@ -2541,6 +2539,22 @@ static BOOL GUI_Build(HDC hDC, HWND hwnd, POINT pt)
25412539 RemoveMenu (hMenu , 3 , MF_BYCOMMAND );
25422540 }
25432541 }
2542+ else if (!wcscmp (name , L"OldTaskbar" ))
2543+ {
2544+ if (!DoesTaskbarDllExist ())
2545+ {
2546+ MENUITEMINFOA menuInfo ;
2547+ ZeroMemory (& menuInfo , sizeof (MENUITEMINFOA ));
2548+ menuInfo .cbSize = sizeof (MENUITEMINFOA );
2549+ menuInfo .fMask = MIIM_DATA ;
2550+ GetMenuItemInfoA (hMenu , 3 , FALSE, & menuInfo );
2551+ if (menuInfo .dwItemData )
2552+ {
2553+ free (menuInfo .dwItemData );
2554+ }
2555+ RemoveMenu (hMenu , 3 , MF_BYCOMMAND );
2556+ }
2557+ }
25442558 HKEY hKey = NULL ;
25452559 wchar_t * matchHKLM = wcsstr (section , L"HKEY_LOCAL_MACHINE" );
25462560 BOOL bIsHKLM = matchHKLM && (matchHKLM - section ) < 3 ;
@@ -2618,6 +2632,10 @@ static BOOL GUI_Build(HDC hDC, HWND hwnd, POINT pt)
26182632 {
26192633 GUI_TaskbarStyle = value ;
26202634 AdjustTaskbarStyleValue (& GUI_TaskbarStyle );
2635+ if (value >= 2 && !DoesTaskbarDllExist ())
2636+ {
2637+ value = 0 ;
2638+ }
26212639 }
26222640 if (hDC && bInvert )
26232641 {
0 commit comments