Merge pull request #15200 from perminovVS/v3-dev-wic-image-loader-bad-hresult

WICImageLoader incorrect use S_FALSE constant
This commit is contained in:
minggo 2016-04-07 17:31:15 +08:00
commit d8764ab730
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;
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;
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;
IWICImagingFactory* pfactory = getWICFactory();