Skip to content

Commit acc4149

Browse files
committed
Fixed Issue 415.
1 parent eac9cc4 commit acc4149

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Properties/AssemblyVersion.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ This Source Code Form is subject to the terms of the Mozilla Public
1010

1111
using System.Reflection;
1212

13-
[assembly: AssemblyVersion("0.5.1.9")]
14-
[assembly: AssemblyInformationalVersion("0.5.1.9 Alpha")]
13+
[assembly: AssemblyVersion("0.5.1.10")]
14+
[assembly: AssemblyInformationalVersion("0.5.1.10 Alpha")]

WMI/WmiProvider.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ This Source Code Form is subject to the terms of the Mozilla Public
55
file, You can obtain one at http://mozilla.org/MPL/2.0/.
66
77
Copyright (C) 2009-2010 Paul Werelds <[email protected]>
8-
8+
Copyright (C) 2012 Michael Möller <[email protected]>
9+
910
*/
1011

1112
using System;
@@ -102,6 +103,9 @@ private void RevokeInstance(string identifier) {
102103
item => item.Identifier == identifier.ToString()
103104
);
104105

106+
if (instanceIndex == -1)
107+
return;
108+
105109
try {
106110
Instrumentation.Revoke(activeInstances[instanceIndex]);
107111
} catch (Exception) { }

0 commit comments

Comments
 (0)