WICImageLoader incorrect use S_FALSE constant

This commit is contained in:
Vladimir Perminov 2016-03-07 15:48:49 +03:00
parent f2c999441a
commit 3e16236a95
1 changed files with 4 additions and 4 deletions

View File

@ -94,8 +94,8 @@ WICImageLoader::~WICImageLoader()
bool WICImageLoader::decodeImageData(ImageBlob blob, size_t size)
{
bool bRet = false;
HRESULT hr = S_FALSE;
bool bRet = false;
HRESULT hr = E_FAIL; // S_FALSE is succeeded
IWICStream* pWicStream = NULL;
IWICImagingFactory* pWicFactory = getWICFactory();
@ -127,7 +127,7 @@ bool WICImageLoader::decodeImageData(ImageBlob blob, size_t size)
bool WICImageLoader::processImage(IWICBitmapDecoder* pDecoder)
{
HRESULT hr = S_FALSE;
HRESULT hr = E_FAIL; // S_FALSE is succeeded
IWICBitmapFrameDecode* pFrame = NULL;
if(NULL != pDecoder)
@ -240,7 +240,7 @@ HRESULT WICImageLoader::convertFormatIfRequired(IWICBitmapFrameDecode* pFrame, I
size_t WICImageLoader::getBitsPerPixel(WICPixelFormatGUID format)
{
HRESULT hr = S_FALSE;
HRESULT hr = E_FAIL; // S_FALSE is succeeded
IWICImagingFactory* pfactory = getWICFactory();