diff -r 813d8bc3192f -r fa9dfbfc4145 Hardware/HDD/HDD.cs --- a/Hardware/HDD/HDD.cs Sun Aug 08 13:57:26 2010 +0000 +++ b/Hardware/HDD/HDD.cs Thu Aug 12 20:53:27 2010 +0000 @@ -37,6 +37,7 @@ using System; using System.Collections.Generic; +using System.Globalization; namespace OpenHardwareMonitor.Hardware.HDD { internal class HDD : IHardware { @@ -70,7 +71,10 @@ } public Identifier Identifier { - get { return new Identifier("hdd", drive.ToString()); } + get { + return new Identifier("hdd", + drive.ToString(CultureInfo.InvariantCulture)); + } } public HardwareType HardwareType { @@ -113,7 +117,8 @@ #pragma warning restore 67 public void Accept(IVisitor visitor) { - visitor.VisitHardware(this); + if (visitor != null) + visitor.VisitHardware(this); } public void Traverse(IVisitor visitor) { }