Browse Source

Fix crash when decompiling WebSocketBase::SendFrameAsync.

pull/384/head
Daniel Grunwald 13 years ago
parent
commit
6d4f2e37fe
  1. 8
      ICSharpCode.Decompiler/ILAst/TypeAnalysis.cs

8
ICSharpCode.Decompiler/ILAst/TypeAnalysis.cs

@ -303,7 +303,13 @@ namespace ICSharpCode.Decompiler.ILAst @@ -303,7 +303,13 @@ namespace ICSharpCode.Decompiler.ILAst
return v.Type;
}
case ILCode.Ldloca:
return new ByReferenceType(((ILVariable)expr.Operand).Type);
{
ILVariable v = (ILVariable)expr.Operand;
if (v.Type != null)
return new ByReferenceType(v.Type);
else
return null;
}
#endregion
#region Call / NewObj
case ILCode.Call:

Loading…
Cancel
Save