Back out 248daf8c6362 (bug 852915) for Win7 mochitest-1 orange

This commit is contained in:
Phil Ringnalda
2013-04-17 23:23:33 -07:00
parent 9efe18946c
commit 05c22c8035
5 changed files with 9 additions and 79 deletions

View File

@@ -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,