Added more disposed checks.

This commit is contained in:
antiduh
2014-07-01 18:32:44 +00:00
parent e980e11184
commit 306fe44cc1

View File

@@ -110,6 +110,10 @@ namespace NSspi.Contexts
{
throw new InvalidOperationException( "The context is not fully formed." );
}
else if( this.Disposed )
{
throw new ObjectDisposedException( "Context" );
}
sizes = QueryBufferSizes();
@@ -186,6 +190,10 @@ namespace NSspi.Contexts
{
throw new InvalidOperationException( "The context is not fully formed." );
}
else if( this.Disposed )
{
throw new ObjectDisposedException( "Context" );
}
sizes = QueryBufferSizes();