mirror of
https://github.com/openhardwaremonitor/openhardwaremonitor
synced 2025-09-05 08:45:38 +00:00
Refactored some of the hardware monitoring code and fixed a few code inspection warnings.
This commit is contained in:
@@ -187,7 +187,7 @@ namespace OpenHardwareMonitor.Hardware.ATI {
|
||||
}
|
||||
|
||||
private static void CreateDelegates(string name) {
|
||||
int p = (int)System.Environment.OSVersion.Platform;
|
||||
int p = (int)Environment.OSVersion.Platform;
|
||||
if ((p == 4) || (p == 128))
|
||||
dllName = name + ".so";
|
||||
else
|
||||
@@ -234,7 +234,7 @@ namespace OpenHardwareMonitor.Hardware.ATI {
|
||||
enumConnectedAdapters);
|
||||
}
|
||||
} catch {
|
||||
return ADL.ADL_ERR;
|
||||
return ADL_ERR;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user