mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Bug 627693 - GfxInfo.cpp fails to compile on mingw after landing bug 590373 r=bjacob a=dbaron
This commit is contained in:
parent
e14e74799c
commit
6ebb71b13f
@ -692,7 +692,7 @@ gfxWindowsPlatform::WindowsOSVersion()
|
||||
}
|
||||
|
||||
void
|
||||
gfxWindowsPlatform::GetDLLVersion(PRUnichar *aDLLPath, nsAString& aVersion)
|
||||
gfxWindowsPlatform::GetDLLVersion(const PRUnichar *aDLLPath, nsAString& aVersion)
|
||||
{
|
||||
DWORD versInfoSize, vers[4] = {0};
|
||||
// version info not available case
|
||||
@ -703,7 +703,7 @@ gfxWindowsPlatform::GetDLLVersion(PRUnichar *aDLLPath, nsAString& aVersion)
|
||||
if (!versionInfo.AppendElements(PRUint32(versInfoSize))) {
|
||||
return;
|
||||
}
|
||||
if (!GetFileVersionInfoW(aDLLPath, NULL, versInfoSize,
|
||||
if (!GetFileVersionInfoW(aDLLPath, 0, versInfoSize,
|
||||
LPBYTE(versionInfo.Elements()))) {
|
||||
return;
|
||||
}
|
||||
|
@ -227,7 +227,7 @@ public:
|
||||
|
||||
static PRInt32 WindowsOSVersion();
|
||||
|
||||
static void GetDLLVersion(PRUnichar *aDLLPath, nsAString& aVersion);
|
||||
static void GetDLLVersion(const PRUnichar *aDLLPath, nsAString& aVersion);
|
||||
|
||||
virtual void FontsPrefsChanged(nsIPrefBranch *aPrefBranch, const char *aPref);
|
||||
|
||||
|
@ -352,9 +352,9 @@ GfxInfo::Init()
|
||||
// with bad Intel driver installations where the DriverVersion reported by the registry was
|
||||
// not the version of the DLL.
|
||||
PRBool is64bitApp = sizeof(void*) == 8;
|
||||
PRUnichar *dllFileName = is64bitApp
|
||||
? L"igd10umd64.dll"
|
||||
: L"igd10umd32.dll";
|
||||
const PRUnichar *dllFileName = is64bitApp
|
||||
? L"igd10umd64.dll"
|
||||
: L"igd10umd32.dll";
|
||||
nsString dllVersion;
|
||||
// if GetDLLVersion fails, it gives "0.0.0.0"
|
||||
gfxWindowsPlatform::GetPlatform()->GetDLLVersion(dllFileName, dllVersion);
|
||||
|
Loading…
Reference in New Issue
Block a user