From 62ccbe9d58b71938a9bb2248688a10385b5a3a5f Mon Sep 17 00:00:00 2001 From: Tino Reichardt Date: Fri, 30 Dec 2016 12:25:42 +0100 Subject: [PATCH] replaced E_FAIL with E_NOTIMPL in SetDecoderProperties2() --- CPP/7zip/Compress/Lz4Decoder.cpp | 2 +- CPP/7zip/Compress/Lz5Decoder.cpp | 2 +- CPP/7zip/Compress/ZstdDecoder.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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));