diff --git a/CPP/7zip/Compress/Lz4Decoder.cpp b/CPP/7zip/Compress/Lz4Decoder.cpp index 4af68afe..a4f084af 100644 --- a/CPP/7zip/Compress/Lz4Decoder.cpp +++ b/CPP/7zip/Compress/Lz4Decoder.cpp @@ -100,7 +100,7 @@ STDMETHODIMP CDecoder::SetDecoderProperties2(const Byte * prop, UInt32 size) DProps *pProps = (DProps *)prop; if (size != sizeof(DProps)) - return E_FAIL; + return E_NOTIMPL; memcpy(&_props, pProps, sizeof (DProps)); diff --git a/CPP/7zip/Compress/Lz5Decoder.cpp b/CPP/7zip/Compress/Lz5Decoder.cpp index d01b8a67..65e456f5 100644 --- a/CPP/7zip/Compress/Lz5Decoder.cpp +++ b/CPP/7zip/Compress/Lz5Decoder.cpp @@ -100,7 +100,7 @@ STDMETHODIMP CDecoder::SetDecoderProperties2(const Byte * prop, UInt32 size) DProps *pProps = (DProps *)prop; if (size != sizeof(DProps)) - return E_FAIL; + return E_NOTIMPL; memcpy(&_props, pProps, sizeof (DProps)); diff --git a/CPP/7zip/Compress/ZstdDecoder.cpp b/CPP/7zip/Compress/ZstdDecoder.cpp index cf531f62..c857aa18 100644 --- a/CPP/7zip/Compress/ZstdDecoder.cpp +++ b/CPP/7zip/Compress/ZstdDecoder.cpp @@ -100,7 +100,7 @@ STDMETHODIMP CDecoder::SetDecoderProperties2(const Byte * prop, UInt32 size) DProps *pProps = (DProps *)prop; if (size != sizeof(DProps)) - return E_FAIL; + return E_NOTIMPL; memcpy(&_props, pProps, sizeof (DProps));