[Mediaportal-svn] r21812 - trunk/MP-II/Source/System/MediaPortal.Core/General
Turn your PC into a very advanced MediaCenter/HTPC
Brought to you by:
gereonheitmann,
morpheus_xx
From: <alb...@de...> - 2009-02-27 18:24:20
|
Author: albert1978 Date: 2009-02-27 18:24:01 +0000 (Fri, 27 Feb 2009) New Revision: 21812 Modified: trunk/MP-II/Source/System/MediaPortal.Core/General/SystemName.cs Log: Fixed a problem in SystemName Modified: trunk/MP-II/Source/System/MediaPortal.Core/General/SystemName.cs =================================================================== --- trunk/MP-II/Source/System/MediaPortal.Core/General/SystemName.cs 2009-02-27 18:14:38 UTC (rev 21811) +++ trunk/MP-II/Source/System/MediaPortal.Core/General/SystemName.cs 2009-02-27 18:24:01 UTC (rev 21812) @@ -22,6 +22,7 @@ #endregion +using System; using System.Net; using System.Xml.Serialization; @@ -96,12 +97,14 @@ public bool IsLocalSystem() { - return _hostName == LocalHostName || _hostName == LOCALHOST_NAME; + return string.Equals(_hostName, LocalHostName, StringComparison.InvariantCultureIgnoreCase) || + string.Equals(_hostName, LOCALHOST_NAME, StringComparison.InvariantCultureIgnoreCase); } public static bool operator==(SystemName first, SystemName second) { - return first.HostName == second.HostName || (first.IsLocalSystem() && second.IsLocalSystem()); + return string.Equals(first.HostName, second.HostName, StringComparison.InvariantCultureIgnoreCase) || + (first.IsLocalSystem() && second.IsLocalSystem()); } public static bool operator!=(SystemName first, SystemName second) |