mirror of
https://github.com/openhardwaremonitor/openhardwaremonitor
synced 2025-08-29 13:28:04 +00:00
Fixed Issue 11.
This commit is contained in:
parent
28372ca610
commit
051c74a72d
@ -51,7 +51,9 @@ namespace OpenHardwareMonitor.Hardware.Mainboard {
|
||||
|
||||
public Mainboard() {
|
||||
this.smbios = new SMBIOS();
|
||||
if (smbios.Board != null && smbios.Board.ProductName != null
|
||||
|
||||
if (smbios.Board != null) {
|
||||
if (smbios.Board.ProductName != null
|
||||
&& smbios.Board.ProductName != "") {
|
||||
if (smbios.Board.Manufacturer == Manufacturer.Unkown)
|
||||
this.name = smbios.Board.ProductName;
|
||||
@ -61,6 +63,10 @@ namespace OpenHardwareMonitor.Hardware.Mainboard {
|
||||
} else {
|
||||
this.name = smbios.Board.Manufacturer.ToString();
|
||||
}
|
||||
} else {
|
||||
this.name = Manufacturer.Unkown.ToString();
|
||||
}
|
||||
|
||||
this.icon = Utilities.EmbeddedResources.GetImage("mainboard.png");
|
||||
this.lpcGroup = new LPCGroup();
|
||||
}
|
||||
|
@ -69,5 +69,5 @@ using System.Runtime.InteropServices;
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("0.1.25.0")]
|
||||
[assembly: AssemblyFileVersion("0.1.25.0")]
|
||||
[assembly: AssemblyVersion("0.1.26.0")]
|
||||
[assembly: AssemblyFileVersion("0.1.26.0")]
|
||||
|
Loading…
x
Reference in New Issue
Block a user