浏览代码

Reason why server rejected to show release sponsor was lost when image/localimage directive was absent in the response

(cherry picked from commit 942f73aaa774a10a7dc371eacaf44ff5a67f68be)

Source commit: 6cd8ad5aeae52cf3a646fa3be581809e7147e110
Martin Prikryl 7 年之前
父节点
当前提交
a995bc5b62
共有 1 个文件被更改,包括 11 次插入9 次删除
  1. 11 9
      deployment/winscpsetup.iss

+ 11 - 9
deployment/winscpsetup.iss

@@ -1886,17 +1886,19 @@ begin
           Lines.Free;
         end;
 
-        if SponsorImage = nil then
-        begin
-          Log('Incomplete sponsor data');
-          SponsorStatus := 'P';
-          ShowSponsor := -1;
-        end;
-
         if ShowSponsor = 0 then
         begin
-          SponsorStatus := 'S';
-          ShowSponsor := 1;
+          if SponsorImage = nil then
+          begin
+            Log('Incomplete sponsor data');
+            SponsorStatus := 'P';
+            ShowSponsor := -1;
+          end
+            else
+          begin
+            SponsorStatus := 'S';
+            ShowSponsor := 1;
+          end;
         end;
       end;
     except