diff --git a/mozilla/widget/src/windows/nsLookAndFeel.cpp b/mozilla/widget/src/windows/nsLookAndFeel.cpp index c35e9df76ed..ca6183b61ec 100644 --- a/mozilla/widget/src/windows/nsLookAndFeel.cpp +++ b/mozilla/widget/src/windows/nsLookAndFeel.cpp @@ -562,7 +562,7 @@ NS_IMETHODIMP nsLookAndFeel::GetMetric(const nsMetricID aID, PRInt32 & aMetric) // users a handful of clock cycles by skipping checks for the // 5.x themes (or vice-versa), we can use a single loop for all // the different Windows versions. - if (hresult == S_OK && GetWindowsVersion() <= VISTA_VERSION) { + if (hresult == S_OK && GetWindowsVersion() <= WIN7_VERSION) { LPCWSTR defThemes[] = { L"luna.msstyles", L"royale.msstyles", diff --git a/mozilla/widget/src/windows/nsWindow.h b/mozilla/widget/src/windows/nsWindow.h index 979543de893..aaf92fdc87f 100644 --- a/mozilla/widget/src/windows/nsWindow.h +++ b/mozilla/widget/src/windows/nsWindow.h @@ -87,6 +87,7 @@ struct nsFakeCharMessage; #define WINXP_VERSION 0x501 #define WIN2K3_VERSION 0x502 #define VISTA_VERSION 0x600 +#define WIN7_VERSION 0x601 PRInt32 GetWindowsVersion();