Bugfixes and new Mainboards (#96)
Bug: Reduced exceptions during cpu core init Bug: GetSensorValuesFromSettings, Sensors.cs reduced number of exceptions Bug: HTTP Server Null Reference Exception on StopHTTPListener Bug: in some cases 64 bit process on a 32Bit system detected Intel CPUs: Max Temperature Sensor from all Cores Average temperature from all core sensors dist to tjmax sensor for each core AMD: support new cpus bugfix power sensors Mainboards: Asrock: AB350 PRO4 AB350M PRO4 AB350M Fatal1ty AB350 Gaming K4 AB350M HDV Phantom Gaming 6 A320M-HDV Asrock Z77 Pro4-M Asus: ASUS ROG ZENITH EXTREME (X399) Z170-A Gigabyte: GIGABYTE X399 AOURUS GAMING7
This commit is contained in:
@@ -9,21 +9,8 @@ namespace OpenHardwareMonitor.Software {
|
||||
var platform = Environment.OSVersion.Platform;
|
||||
IsLinux = platform == PlatformID.Unix || platform == PlatformID.MacOSX;
|
||||
|
||||
|
||||
if (IntPtr.Size == 8) {
|
||||
if (System.Environment.Is64BitProcess)
|
||||
Is64Bit = true;
|
||||
} else if (!IsLinux) {
|
||||
try {
|
||||
var result = IsWow64Process(Process.GetCurrentProcess().Handle, out bool wow64Process);
|
||||
// If we are still here, this is a 64bit windows; 32bit windows does
|
||||
// not provide IsWow64Process.
|
||||
Is64Bit = true;
|
||||
}
|
||||
catch (EntryPointNotFoundException) {
|
||||
// IsWow64Process is not present on 32 bit:
|
||||
Is64Bit = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static bool Is64Bit { get; }
|
||||
|
||||
Reference in New Issue
Block a user