From e7d44e9d992c256f5993c4662903c64e5d8a9e48 Mon Sep 17 00:00:00 2001 From: sr55 Date: Tue, 22 Mar 2016 15:20:03 +0000 Subject: WinGui: Remove a restriction on the WMI GPU information call. It will now display any records that don't have a Name or Version. I don't believe this will make any different under normal circumstances but it appears WMI many not report back the expected information. --- win/CS/HandBrake.ApplicationServices/Utilities/SystemInfo.cs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'win') diff --git a/win/CS/HandBrake.ApplicationServices/Utilities/SystemInfo.cs b/win/CS/HandBrake.ApplicationServices/Utilities/SystemInfo.cs index bd705e6d3..ce5e5506f 100644 --- a/win/CS/HandBrake.ApplicationServices/Utilities/SystemInfo.cs +++ b/win/CS/HandBrake.ApplicationServices/Utilities/SystemInfo.cs @@ -146,10 +146,17 @@ namespace HandBrake.ApplicationServices.Utilities } } - if (!string.IsNullOrEmpty(gpu) && !string.IsNullOrEmpty(version)) + if (string.IsNullOrEmpty(gpu)) { - gpuInfo.Add(string.Format("{0} - {1}", gpu, version)); + gpu = "Unknown GPU"; } + + if (string.IsNullOrEmpty(version)) + { + version = "Unknown Driver Version"; + } + + gpuInfo.Add(string.Format("{0} - {1}", gpu, version)); } } catch (Exception) -- cgit v1.2.3