mirror of https://github.com/x64dbg/zydis
Fixed `mode == 0` in `ZydisDecoderEnableMode`
This commit is contained in:
parent
cbf06b1bf3
commit
a227bd4bbe
|
@ -4433,7 +4433,7 @@ ZydisStatus ZydisDecoderInit(ZydisDecoder* decoder, ZydisMachineMode machineMode
|
|||
|
||||
ZydisStatus ZydisDecoderEnableMode(ZydisDecoder* decoder, ZydisDecoderMode mode, ZydisBool enabled)
|
||||
{
|
||||
if (!decoder || !mode || (mode > ZYDIS_DECODER_MODE_MAX_VALUE))
|
||||
if (!decoder || (mode > ZYDIS_DECODER_MODE_MAX_VALUE))
|
||||
{
|
||||
return ZYDIS_STATUS_INVALID_PARAMETER;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue