Skip to content

Commit 62030e0

Browse files
committed
Correct the incorrect value of NotAdvising constant.
1 parent 4ebeece commit 62030e0

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)