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:
antiduh
2014-06-30 15:05:29 +00:00
parent 6ed1ab5f76
commit 04df802e54

View File

@@ -60,6 +60,7 @@ namespace NSspi
get { return IsClosed || this.rawHandle.IsZero(); }
}
[ReliabilityContract( Consistency.WillNotCorruptState, Cer.Success )]
protected override bool ReleaseHandle()
{
this.rawHandle.SetInvalid();