# HG changeset patch # User moel.mich # Date 1353359141 0 # Node ID 88d699a65cc2c1e571d455ea20b0dcc1ecc86b06 # Parent 93cee0b9f619265c6d9b6521e34e328c4df0fdea Fixed Issue 415. diff -r 93cee0b9f619 -r 88d699a65cc2 Properties/AssemblyVersion.cs --- a/Properties/AssemblyVersion.cs Sun Nov 04 13:10:53 2012 +0000 +++ b/Properties/AssemblyVersion.cs Mon Nov 19 21:05:41 2012 +0000 @@ -10,5 +10,5 @@ using System.Reflection; -[assembly: AssemblyVersion("0.5.1.9")] -[assembly: AssemblyInformationalVersion("0.5.1.9 Alpha")] \ No newline at end of file +[assembly: AssemblyVersion("0.5.1.10")] +[assembly: AssemblyInformationalVersion("0.5.1.10 Alpha")] \ No newline at end of file diff -r 93cee0b9f619 -r 88d699a65cc2 WMI/WmiProvider.cs --- a/WMI/WmiProvider.cs Sun Nov 04 13:10:53 2012 +0000 +++ b/WMI/WmiProvider.cs Mon Nov 19 21:05:41 2012 +0000 @@ -5,7 +5,8 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/. Copyright (C) 2009-2010 Paul Werelds - + Copyright (C) 2012 Michael Möller + */ using System; @@ -102,6 +103,9 @@ item => item.Identifier == identifier.ToString() ); + if (instanceIndex == -1) + return; + try { Instrumentation.Revoke(activeInstances[instanceIndex]); } catch (Exception) { }