Fixed Issue 415.
authormoel.mich
Mon, 19 Nov 2012 21:05:41 +0000
changeset 39088d699a65cc2
parent 389 93cee0b9f619
child 391 5be8f2773237
Fixed Issue 415.
Properties/AssemblyVersion.cs
WMI/WmiProvider.cs
     1.1 --- a/Properties/AssemblyVersion.cs	Sun Nov 04 13:10:53 2012 +0000
     1.2 +++ b/Properties/AssemblyVersion.cs	Mon Nov 19 21:05:41 2012 +0000
     1.3 @@ -10,5 +10,5 @@
     1.4  
     1.5  using System.Reflection;
     1.6  
     1.7 -[assembly: AssemblyVersion("0.5.1.9")]
     1.8 -[assembly: AssemblyInformationalVersion("0.5.1.9 Alpha")]
     1.9 \ No newline at end of file
    1.10 +[assembly: AssemblyVersion("0.5.1.10")]
    1.11 +[assembly: AssemblyInformationalVersion("0.5.1.10 Alpha")]
    1.12 \ No newline at end of file
     2.1 --- a/WMI/WmiProvider.cs	Sun Nov 04 13:10:53 2012 +0000
     2.2 +++ b/WMI/WmiProvider.cs	Mon Nov 19 21:05:41 2012 +0000
     2.3 @@ -5,7 +5,8 @@
     2.4    file, You can obtain one at http://mozilla.org/MPL/2.0/.
     2.5   
     2.6    Copyright (C) 2009-2010 Paul Werelds <paul@werelds.net>
     2.7 -	
     2.8 +	Copyright (C) 2012 Michael Möller <mmoeller@openhardwaremonitor.org>
     2.9 +
    2.10  */
    2.11  
    2.12  using System;
    2.13 @@ -102,6 +103,9 @@
    2.14          item => item.Identifier == identifier.ToString()
    2.15        );
    2.16  
    2.17 +      if (instanceIndex == -1)
    2.18 +        return;
    2.19 +
    2.20        try {
    2.21          Instrumentation.Revoke(activeInstances[instanceIndex]);
    2.22        } catch (Exception) { }