Get rid of the 'status' variable when checking the return code in RevertImpersonate. We don't care what happened, since if it broke, we can't report it (it's in a Dispose path).

This commit is contained in:
antiduh
2014-07-01 21:22:32 +00:00
parent d63abfb178
commit c891b70625

View File

@@ -195,7 +195,6 @@ namespace NSspi.Contexts
internal void RevertImpersonate()
{
bool gotRef = false;
SecurityStatus status = SecurityStatus.InternalError;
if( impersonating == false || this.Disposed )
{
@@ -221,7 +220,7 @@ namespace NSspi.Contexts
{
if( gotRef )
{
status = ContextNativeMethods.RevertSecurityContext(
ContextNativeMethods.RevertSecurityContext(
ref this.ContextHandle.rawHandle
);