Back out 248daf8c6362 (bug 852915) for Win7 mochitest-1 orange
This commit is contained in:
@@ -73,23 +73,6 @@ WinUtils::GetWindowsVersion()
|
||||
return static_cast<WinVersion>(version);
|
||||
}
|
||||
|
||||
/* static */
|
||||
bool
|
||||
WinUtils::GetWindowsServicePackVersion(UINT& aOutMajor, UINT& aOutMinor)
|
||||
{
|
||||
OSVERSIONINFOEX osInfo;
|
||||
osInfo.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX);
|
||||
// This cast is safe and supposed to be here, don't worry
|
||||
if (!::GetVersionEx((OSVERSIONINFO*)&osInfo)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
aOutMajor = osInfo.wServicePackMajor;
|
||||
aOutMinor = osInfo.wServicePackMinor;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/* static */
|
||||
bool
|
||||
WinUtils::PeekMessage(LPMSG aMsg, HWND aWnd, UINT aFirstMessage,
|
||||
|
||||
Reference in New Issue
Block a user