mirror of
https://github.com/valinet/ExplorerPatcher.git
synced 2024-11-24 07:30:22 +01:00
Main: Fix Windows Spotlight integration on OS builds 22621+
This commit is contained in:
parent
92a3da12c0
commit
a90439d096
@ -9403,7 +9403,7 @@ BOOL shell32_DeleteMenu(HMENU hMenu, UINT uPosition, UINT uFlags)
|
|||||||
|
|
||||||
BOOL shell32_TrackPopupMenu(HMENU hMenu, UINT uFlags, int x, int y, int nReserved, HWND hWnd, const RECT* prcRect)
|
BOOL shell32_TrackPopupMenu(HMENU hMenu, UINT uFlags, int x, int y, int nReserved, HWND hWnd, const RECT* prcRect)
|
||||||
{
|
{
|
||||||
if (IsSpotlightEnabled() && dwSpotlightDesktopMenuMask && (GetPropW(GetParent(hWnd), L"DesktopWindow") && RegisterWindowMessageW(L"WorkerW") == GetClassWord(GetParent(hWnd), GCW_ATOM)) && bSpotlightIsDesktopContextMenu)
|
if (IsSpotlightEnabled() && dwSpotlightDesktopMenuMask && (GetPropW(GetParent(hWnd), L"DesktopWindow") && (RegisterWindowMessageW(L"WorkerW") == GetClassWord(GetParent(hWnd), GCW_ATOM) || RegisterWindowMessageW(L"Progman") == GetClassWord(GetParent(hWnd), GCW_ATOM))) && bSpotlightIsDesktopContextMenu)
|
||||||
{
|
{
|
||||||
SpotlightHelper(dwSpotlightDesktopMenuMask, hWnd, hMenu, NULL);
|
SpotlightHelper(dwSpotlightDesktopMenuMask, hWnd, hMenu, NULL);
|
||||||
}
|
}
|
||||||
|
@ -1469,7 +1469,7 @@ BOOL IsConnectedToInternet()
|
|||||||
|
|
||||||
BOOL DoesOSBuildSupportSpotlight()
|
BOOL DoesOSBuildSupportSpotlight()
|
||||||
{
|
{
|
||||||
return global_rovi.dwBuildNumber >= 22000 && global_ubr >= 706;
|
return (global_rovi.dwBuildNumber == 22000 && global_ubr >= 706) || (global_rovi.dwBuildNumber >= 22598);
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL IsSpotlightEnabled()
|
BOOL IsSpotlightEnabled()
|
||||||
|
Loading…
Reference in New Issue
Block a user