diff --git a/Zydis/ZydisInstructionDecoder.cpp b/Zydis/ZydisInstructionDecoder.cpp index de0bb9c..3566aa9 100644 --- a/Zydis/ZydisInstructionDecoder.cpp +++ b/Zydis/ZydisInstructionDecoder.cpp @@ -6,7 +6,7 @@ Remarks : Freeware, Copyright must be included Original Author : Florian Bernd - Modifications : Joel Höner + Modifications : Joel Höner * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -1120,7 +1120,7 @@ bool InstructionDecoder::decodeOpcode(InstructionInfo& info) { if (info.operand[i].type != OperandType::NONE) { - info.operand[i - 1].access_mode = OperandAccessMode::READ; + info.operand[i].access_mode = OperandAccessMode::READ; } } if (info.operand[0].type != OperandType::NONE) @@ -1313,4 +1313,4 @@ DecodeError: /* ============================================================================================== */ -} \ No newline at end of file +}