Skip to content

Commit f92736b

Browse files
authored
Merge pull request #3788 from bclothier/EventInterface
Fixes a bug in COM event management (a constant had the wrong value).
2 parents 4ebeece + 62030e0 commit f92736b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Rubberduck.VBEEditor/SafeComWrappers/SafeEventedComWrapper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public abstract class SafeEventedComWrapper<TSource, TEventInterface> : SafeComW
99
where TSource : class
1010
where TEventInterface : class
1111
{
12-
private const int NotAdvising = -1;
12+
private const int NotAdvising = 0;
1313
private readonly object _lock = new object();
1414
private IConnectionPoint _icp; // The connection point
1515
private int _cookie = NotAdvising; // The cookie for the connection

0 commit comments

Comments
 (0)