Skip to content

Commit

Permalink
Fix new Vista compatibility issue
Browse files Browse the repository at this point in the history
  • Loading branch information
K4sum1 committed Oct 23, 2024
1 parent cee5e37 commit d81d03f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion widget/windows/nsWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1070,7 +1070,7 @@ nsresult nsWindow::Create(nsIWidget* aParent, nsNativeWidget aNativeParent,
(aInitData->mIsPrivate) &&
!StaticPrefs::browser_privatebrowsing_autostart();
RefPtr<IPropertyStore> pPropStore;
if (!FAILED(SHGetPropertyStoreForWindow(mWnd, IID_IPropertyStore,
if (IsWin7OrLater() && !FAILED(SHGetPropertyStoreForWindow(mWnd, IID_IPropertyStore,
getter_AddRefs(pPropStore)))) {
PROPVARIANT pv;
nsAutoString aumid;
Expand Down

0 comments on commit d81d03f

Please sign in to comment.