aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xbmc/utils/SystemInfo.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/xbmc/utils/SystemInfo.cpp b/xbmc/utils/SystemInfo.cpp
index 3c39d7c507..ca7f4cbc19 100644
--- a/xbmc/utils/SystemInfo.cpp
+++ b/xbmc/utils/SystemInfo.cpp
@@ -295,20 +295,17 @@ CStdString CSysInfo::GetXBVerInfo()
bool CSysInfo::IsAeroDisabled()
{
#ifdef _WIN32
- OSVERSIONINFOEX osvi;
- ZeroMemory(&osvi, sizeof(OSVERSIONINFOEX));
- osvi.dwOSVersionInfoSize = sizeof(osvi);
-
- if (GetVersionEx((OSVERSIONINFO *)&osvi))
+ if (IsVistaOrHigher())
{
- if (osvi.dwMajorVersion == 5)
- return true; // windows XP -> no Aero
-
BOOL aeroEnabled = FALSE;
HRESULT res = DwmIsCompositionEnabled(&aeroEnabled);
if (SUCCEEDED(res))
return !aeroEnabled;
}
+ else
+ {
+ return true;
+ }
#endif
return false;
}