We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fbf726 commit 5972f77Copy full SHA for 5972f77
src/BenchmarkDotNet/Detectors/Cpu/Windows/WmicCpuDetector.cs
@@ -13,7 +13,7 @@ internal class WmicCpuDetector : ICpuDetector
13
{
14
private const string DefaultWmicPath = @"C:\Windows\System32\wbem\WMIC.exe";
15
16
- public bool IsApplicable() => OsDetector.IsWindows();
+ public bool IsApplicable() => OsDetector.IsWindows() && File.Exists(DefaultWmicPath);
17
18
public CpuInfo? Detect()
19
0 commit comments