Skip to content

Commit f5e5d76

Browse files
committed
Updater: Fix nightly build signature checking
1 parent a7ce235 commit f5e5d76

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

plugins/Updater/updater.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,9 @@ BOOLEAN QueryUpdateData(
467467

468468
CleanupJsonParser(jsonObject);
469469

470+
if (PhIsNullOrEmptyString(Context->Signature))
471+
goto CleanupExit;
472+
470473
if (!ParseVersionString(Context))
471474
goto CleanupExit;
472475
}
@@ -822,7 +825,7 @@ NTSTATUS UpdateDownloadThread(
822825
// Open the HTTP session with the system proxy configuration if available
823826
if (!(httpSessionHandle = WinHttpOpen(
824827
PhGetStringOrEmpty(userAgentString),
825-
proxyConfig.lpszProxy != NULL ? WINHTTP_ACCESS_TYPE_NAMED_PROXY : WINHTTP_ACCESS_TYPE_DEFAULT_PROXY,
828+
proxyConfig.lpszProxy ? WINHTTP_ACCESS_TYPE_NAMED_PROXY : WINHTTP_ACCESS_TYPE_DEFAULT_PROXY,
826829
proxyConfig.lpszProxy,
827830
proxyConfig.lpszProxyBypass,
828831
0
@@ -833,9 +836,9 @@ NTSTATUS UpdateDownloadThread(
833836

834837
if (WindowsVersion >= WINDOWS_8_1)
835838
{
836-
// Enable GZIP and DEFLATE support on Windows 8.1 and above using undocumented flags.
837839
ULONG httpFlags = WINHTTP_DECOMPRESSION_FLAG_GZIP | WINHTTP_DECOMPRESSION_FLAG_DEFLATE;
838840

841+
// Enable GZIP and DEFLATE support on Windows 8.1 and above using undocumented flags.
839842
WinHttpSetOption(
840843
httpSessionHandle,
841844
WINHTTP_OPTION_DECOMPRESSION,

0 commit comments

Comments
 (0)