]> granicus.if.org Git - handbrake/commitdiff
WinGui: Remove a restriction on the WMI GPU information call. It will now display...
authorsr55 <sr55.hb@outlook.com>
Tue, 22 Mar 2016 15:20:03 +0000 (15:20 +0000)
committersr55 <sr55.hb@outlook.com>
Tue, 22 Mar 2016 15:20:03 +0000 (15:20 +0000)
win/CS/HandBrake.ApplicationServices/Utilities/SystemInfo.cs

index bd705e6d30cde46f32bc28d2e11d79f974283a2a..ce5e5506f4d080d4d7ac799f371e0c571c9492b3 100644 (file)
@@ -146,10 +146,17 @@ namespace HandBrake.ApplicationServices.Utilities
                             }\r
                         }\r
 \r
-                        if (!string.IsNullOrEmpty(gpu) && !string.IsNullOrEmpty(version))\r
+                        if (string.IsNullOrEmpty(gpu))\r
                         {\r
-                            gpuInfo.Add(string.Format("{0} - {1}", gpu, version));\r
+                            gpu = "Unknown GPU";\r
                         }\r
+\r
+                        if (string.IsNullOrEmpty(version))\r
+                        {\r
+                            version = "Unknown Driver Version";\r
+                        }\r
+\r
+                        gpuInfo.Add(string.Format("{0} - {1}", gpu, version));\r
                     }\r
                 }\r
                 catch (Exception)\r