Add ReliabilityContract for the ReleaseHandle on SafeSspiHandle so that it can fully participate in the implicit CER that is created during finalization.
This commit is contained in:
@@ -60,6 +60,7 @@ namespace NSspi
|
||||
get { return IsClosed || this.rawHandle.IsZero(); }
|
||||
}
|
||||
|
||||
[ReliabilityContract( Consistency.WillNotCorruptState, Cer.Success )]
|
||||
protected override bool ReleaseHandle()
|
||||
{
|
||||
this.rawHandle.SetInvalid();
|
||||
|
||||
Reference in New Issue
Block a user