Skip to content

Commit fa4d893

Browse files
committed
* Remove obsolete product version fallback, part 2.
1 parent 018b218 commit fa4d893

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

Src/ClassicExplorer/ClassicCopy.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,9 @@ static LRESULT CALLBACK WindowProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM
687687
if (bDef)
688688
{
689689
delay=0;
690+
#if _WIN32_WINNT < _WIN32_WINNT_WIN7
690691
if (GetWinVersion()>=_WIN32_WINNT_WIN7)
692+
#endif
691693
{
692694
BOOL comp;
693695
if (SUCCEEDED(DwmIsCompositionEnabled(&comp)) && comp)

Src/ClassicExplorer/ExplorerBand.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,9 @@ static bool GetPidlPath( PIDLIST_ABSOLUTE pidl, wchar_t *path )
539539
path[0]=0;
540540
if (SHGetPathFromIDList(pidl,path) && *path)
541541
return true;
542+
#if _WIN32_WINNT < _WIN32_WINNT_WIN7
542543
if (GetWinVersion()>= _WIN32_WINNT_WIN7)
544+
#endif
543545
{
544546
// maybe it is a library - try the default save folder
545547
CComPtr<IShellItem> pShellItem;
@@ -1983,7 +1985,12 @@ void CBandWindow::SetBrowsers( IShellBrowser *pBrowser, IWebBrowser2 *pWebBrowse
19831985

19841986
CExplorerBand::CExplorerBand( void )
19851987
{
1986-
m_bSubclassRebar=GetWinVersion()>= _WIN32_WINNT_WIN7;
1988+
m_bSubclassRebar =
1989+
#if _WIN32_WINNT < _WIN32_WINNT_WIN7
1990+
GetWinVersion() >= _WIN32_WINNT_WIN7;
1991+
#else
1992+
true;
1993+
#endif
19871994
m_bSubclassedRebar=false;
19881995
m_TopWindow=NULL;
19891996
}

Src/StartMenu/StartMenuDLL/ItemManager.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,9 @@ static CComPtr<IApplicationResolver> g_pAppResolver;
123123
// Creates the app id resolver object
124124
static void CreateAppResolver( void )
125125
{
126+
#if _WIN32_WINNT < _WIN32_WINNT_WIN7
126127
if (GetWinVersion()>=_WIN32_WINNT_WIN7)
128+
#endif
127129
{
128130
CComPtr<IUnknown> pUnknown;
129131
pUnknown.CoCreateInstance(CLSID_ApplicationResolver);
@@ -1938,7 +1940,9 @@ void CItemManager::RefreshItemInfo( ItemInfo *pInfo, int refreshFlags, IShellIte
19381940
}
19391941
if (pStore)
19401942
{
1943+
#if _WIN32_WINNT < _WIN32_WINNT_WIN7
19411944
if (GetWinVersion()>=_WIN32_WINNT_WIN7)
1945+
#endif
19421946
{
19431947
newInfo.appid=GetPropertyStoreString(pStore,PKEY_AppUserModel_ID);
19441948
newInfo.bExplicitAppId=!newInfo.appid.IsEmpty();

Src/StartMenu/StartMenuDLL/MenuContainer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7725,7 +7725,9 @@ HWND CMenuContainer::ToggleStartMenu( int taskbarId, bool bKeyboard, bool bAllPr
77257725
}
77267726

77277727
// the taskbar on Windows 7 (and most likely later versions) is always on top even though it doesn't have the ABS_ALWAYSONTOP flag.
7728+
#if _WIN32_WINNT < _WIN32_WINNT_WIN7
77287729
if (GetWinVersion()>=_WIN32_WINNT_WIN7)
7730+
#endif
77297731
{
77307732
// also check the WS_EX_TOPMOST style - maybe some tool like DisableTaskbarOnTop is messing with it
77317733
if (::GetWindowLong(s_TaskBar,GWL_EXSTYLE)&WS_EX_TOPMOST)

0 commit comments

Comments
 (0)