cleanup post update launching code
authorRobert Strong <robert.bugzilla@gmail.com>
Sun, 05 Jul 2015 11:20:36 -0700
changeset 491439 942f77497ccbb152b86542b06907bea473997a44
parent 491438 19e465c824f160898d0e4ae960f0732a33ff1496
child 491440 bb7149de62326c60786517bd0b165ae00fa5f465
push id47343
push userbmo:dothayer@mozilla.com
push dateWed, 01 Mar 2017 22:58:58 +0000
milestone42.0a1
cleanup post update launching code
toolkit/mozapps/update/updater/updater.cpp
--- a/toolkit/mozapps/update/updater/updater.cpp
+++ b/toolkit/mozapps/update/updater/updater.cpp
@@ -1874,17 +1874,17 @@ LaunchWinPostProcess(const WCHAR *instal
 
   WCHAR exefullpath[MAX_PATH + 1] = { L'\0' };
   wcsncpy(exefullpath, installationDir, MAX_PATH);
   if (!PathAppendSafe(exefullpath, exefile)) {
     return false;
   }
 
 #if !defined(TEST_UPDATER)
-  if (forceSync && DoesBinaryMatchAllowedCertificates(installationDir, exefullpath)) {
+  if (forceSync && !DoesBinaryMatchAllowedCertificates(installationDir, exefullpath)) {
     return false;
   }
 #endif
 
   WCHAR dlogFile[MAX_PATH + 1];
   if (!PathGetSiblingFilePath(dlogFile, exefullpath, L"uninstall.update")) {
     return FALSE;
   }