summaryrefslogtreecommitdiffstats
path: root/WhisperNet
diff options
context:
space:
mode:
Diffstat (limited to 'WhisperNet')
-rw-r--r--WhisperNet/CaptureCallbacks.cs2
-rw-r--r--WhisperNet/Internal/sCaptureCallbacks.cs1
2 files changed, 2 insertions, 1 deletions
diff --git a/WhisperNet/CaptureCallbacks.cs b/WhisperNet/CaptureCallbacks.cs
index 26013f9..f2528e4 100644
--- a/WhisperNet/CaptureCallbacks.cs
+++ b/WhisperNet/CaptureCallbacks.cs
@@ -19,7 +19,7 @@ namespace Whisper
{
try
{
- return shouldCancel( sender ) ? S_OK : S_FALSE;
+ return shouldCancel( sender ) ? S_FALSE : S_OK;
}
catch( Exception ex )
{
diff --git a/WhisperNet/Internal/sCaptureCallbacks.cs b/WhisperNet/Internal/sCaptureCallbacks.cs
index 483c2f2..0865a5a 100644
--- a/WhisperNet/Internal/sCaptureCallbacks.cs
+++ b/WhisperNet/Internal/sCaptureCallbacks.cs
@@ -3,6 +3,7 @@
namespace Whisper.Internal
{
/// <summary>Unmanaged code calls this to check for cancellation</summary>
+ /// <remarks>Return 0 to proceed, or 1 to stop the process and return from Context.runFull method</remarks>
[UnmanagedFunctionPointer( CallingConvention.StdCall )]
public delegate int pfnShouldCancel( IntPtr pv );