@@ -1171,8 +1171,6 @@ static BOOL GUI_Build(HDC hDC, HWND hwnd, POINT pt)
1171
1171
else if (!_stricmp (funcName , "!IsOldTaskbar" ) && GUI_GetTaskbarStyle (TRUE) != 0 ) bSkipLines = TRUE;
1172
1172
else if (!_stricmp (funcName , "IsStockWin10Taskbar" ) && GUI_GetTaskbarStyle (TRUE) != 1 ) bSkipLines = TRUE;
1173
1173
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;
1176
1174
else if (!_stricmp (funcName , "!IsStockWindows10TaskbarAvailable" ) && !(!IsStockWindows10TaskbarAvailable () && GUI_GetTaskbarStyle (FALSE) == 1 )) bSkipLines = TRUE;
1177
1175
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;
1178
1176
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)
2516
2514
bShouldAlterTaskbarDa = TRUE;
2517
2515
}
2518
2516
}
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" ))
2520
2518
{
2521
2519
if (GUI_TaskbarStyle == 0 )
2522
2520
{
@@ -2541,6 +2539,22 @@ static BOOL GUI_Build(HDC hDC, HWND hwnd, POINT pt)
2541
2539
RemoveMenu (hMenu , 3 , MF_BYCOMMAND );
2542
2540
}
2543
2541
}
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
+ }
2544
2558
HKEY hKey = NULL ;
2545
2559
wchar_t * matchHKLM = wcsstr (section , L"HKEY_LOCAL_MACHINE" );
2546
2560
BOOL bIsHKLM = matchHKLM && (matchHKLM - section ) < 3 ;
@@ -2618,6 +2632,10 @@ static BOOL GUI_Build(HDC hDC, HWND hwnd, POINT pt)
2618
2632
{
2619
2633
GUI_TaskbarStyle = value ;
2620
2634
AdjustTaskbarStyleValue (& GUI_TaskbarStyle );
2635
+ if (value >= 2 && !DoesTaskbarDllExist ())
2636
+ {
2637
+ value = 0 ;
2638
+ }
2621
2639
}
2622
2640
if (hDC && bInvert )
2623
2641
{
0 commit comments