瀏覽代碼

When installed from Store, never use update authorization, when reporting usage statistics

Source commit: 8cb686413cf5ee67f2e0ee4e92cd59b5e7e74d8c
Martin Prikryl 6 年之前
父節點
當前提交
8c00649809
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      source/windows/Setup.cpp

+ 3 - 1
source/windows/Setup.cpp

@@ -908,7 +908,9 @@ static bool __fastcall DoQueryUpdates(TUpdatesConfiguration & Updates, bool Coll
       URL += L"&localever=" + LocaleVersion;
       URL += L"&localecompl=" + LoadStr(TRANSLATION_COMPLETENESS);
     }
-    if (!Updates.AuthenticationEmail.IsEmpty())
+    // Even if donor email is inherited from normal installation,
+    // do not use it as this all is merely to report usage statistics, not to check for updates, in UWP.
+    if (!Updates.AuthenticationEmail.IsEmpty() && !IsUWP())
     {
       RawByteString AuthenticationEmailBuf = RawByteString(UTF8String(Updates.AuthenticationEmail.LowerCase()));
       URL += L"&authentication=" + Sha256(AuthenticationEmailBuf.c_str(), AuthenticationEmailBuf.Length()).LowerCase();