Fixed wrong return value of `ZydisFormatterSetHook`

This commit is contained in:
flobernd 2017-08-23 20:40:57 +02:00
parent f89398877d
commit 14d87fda8b
1 changed files with 2 additions and 2 deletions

View File

@ -1166,10 +1166,10 @@ ZydisStatus ZydisFormatterSetHook(ZydisFormatter* formatter, ZydisFormatterHookT
formatter->funcPrintImmediate = *(ZydisFormatterFormatOperandFunc*)&temp;
break;
default:
break;
return ZYDIS_STATUS_INVALID_PARAMETER;
}
return ZYDIS_STATUS_INVALID_PARAMETER;
return ZYDIS_STATUS_SUCCESS;
}
ZydisStatus ZydisFormatterFormatInstruction(const ZydisFormatter* formatter,