瀏覽代碼

Correct error in MethInstr.GetDeltaDistance() in instructions.cs for two-byte-instructions.

k_john_gough_cp 15 年之前
父節點
當前提交
e99551e5ee
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      PERWAPI/Instructions.cs

+ 1 - 1
PERWAPI/Instructions.cs

@@ -2647,7 +2647,7 @@ namespace QUT.PERWAPI {
     /// <returns>An integer value representing the delta distance.</returns>
     internal override int GetDeltaDistance() {
       MethSig mSig = null;
-      switch ((MethodOp)instr) {
+      switch ((MethodOp)(this.twoByteInstr ? instr + 0xFE00 : instr)) {
         case MethodOp.callvirt:
         case MethodOp.call: {
             mSig = meth.GetSig();