Bug 597911. Give 64-bit builds on Windows a different application id. r=rstrong

This commit is contained in:
Jim Mathies
2011-03-29 22:24:54 -04:00
parent 7f149a4105
commit dc50cafc60
2 changed files with 14 additions and 1 deletions

View File

@@ -8,7 +8,12 @@
!define AppVendor "Mozilla"
!define AppName "Firefox"
!define AppVersion "@APP_VERSION@"
#ifdef HAVE_64BIT_OS
// differentiate 64-bit builds, we do the same in widget.
!define AppUserModelID "${AppVendor}.${AppName}.${AppVersion}.Win64"
#else
!define AppUserModelID "${AppVendor}.${AppName}.${AppVersion}"
#endif
!define GREVersion @MOZILLA_VERSION@
!define AB_CD "@AB_CD@"

View File

@@ -293,7 +293,15 @@ WinTaskbar::GetAppUserModelID(nsAString & aDefaultGroupId) {
AppendASCIItoUTF16(val, aDefaultGroupId);
}
return aDefaultGroupId.IsEmpty() ? PR_FALSE : PR_TRUE;
if (aDefaultGroupId.IsEmpty())
return PR_FALSE;
// Differentiate 64-bit builds
#if defined(_WIN64)
aDefaultGroupId.AppendLiteral(".Win64");
#endif
return PR_TRUE;
}
/* readonly attribute AString defaultGroupId; */