summaryrefslogtreecommitdiffstats
path: root/win/CS
diff options
context:
space:
mode:
authorsr55 <[email protected]>2016-03-22 15:20:03 +0000
committersr55 <[email protected]>2016-03-22 15:20:03 +0000
commite7d44e9d992c256f5993c4662903c64e5d8a9e48 (patch)
tree7770c7dbe671b39f6e7db92cc4555302e1efbb3c /win/CS
parente60f3dc00655086b8686a981240d4eb696c4c22f (diff)
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.
Diffstat (limited to 'win/CS')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Utilities/SystemInfo.cs11
1 files changed, 9 insertions, 2 deletions
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)