]> granicus.if.org Git - handbrake/commitdiff
WinGui: Change the update checker to use the 64bit appcast when the operating system...
authorsr55 <sr55.hb@outlook.com>
Fri, 5 Sep 2014 22:14:26 +0000 (22:14 +0000)
committersr55 <sr55.hb@outlook.com>
Fri, 5 Sep 2014 22:14:26 +0000 (22:14 +0000)
Added Operating bit-ness to the log header.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6392 b64f7644-9d1e-0410-96f1-a4d463321fa5

win/CS/HandBrake.ApplicationServices/Utilities/GeneralUtilities.cs
win/CS/HandBrakeWPF/Services/UpdateService.cs

index 0bf34b6a4c895b1e21ba32b60f25c6b899629d0f..301145975b062a11ad7072ee34336a1bea92ff89 100644 (file)
@@ -124,7 +124,7 @@ namespace HandBrake.ApplicationServices.Utilities
             }\r
 \r
             logHeader.AppendLine(String.Format("HandBrake {0} - {1}", VersionHelper.GetVersion(), VersionHelper.GetPlatformBitnessVersion()));\r
-            logHeader.AppendLine(String.Format("OS: {0}", Environment.OSVersion));\r
+            logHeader.AppendLine(String.Format("OS: {0} - {1}", Environment.OSVersion, Environment.Is64BitOperatingSystem ? "64bit" : "32bit"));\r
             logHeader.AppendLine(String.Format("CPU: {0}", SystemInfo.GetCpuCount));\r
             logHeader.AppendLine(String.Format("Ram: {0} MB, ", SystemInfo.TotalPhysicalMemory));\r
             logHeader.AppendLine(String.Format("GPU Information:{0}{1}", Environment.NewLine, gpuBuilder.ToString().TrimEnd()));\r
index db94b56b0ab026345ef0f3a7dee5f0cc89531058..85b1f4ab064527f6a263be5aaa3aa27adb580bb2 100644 (file)
@@ -85,14 +85,14 @@ namespace HandBrakeWPF.Services
                     try\r
                     {\r
                         string url =\r
-                            VersionHelper.Is64Bit()\r
+                            VersionHelper.Is64Bit() || Environment.Is64BitOperatingSystem\r
                                 ? Constants.Appcast64\r
                                 : Constants.Appcast32;\r
 \r
                         if (VersionHelper.IsNightly())\r
                         {\r
                             url =\r
-                            VersionHelper.Is64Bit()\r
+                            VersionHelper.Is64Bit() || Environment.Is64BitOperatingSystem\r
                                 ? Constants.AppcastUnstable64\r
                                 : Constants.AppcastUnstable32;\r
                         }\r