mirror of https://github.com/axmolengine/axmol.git
Merge pull request #15200 from perminovVS/v3-dev-wic-image-loader-bad-hresult
WICImageLoader incorrect use S_FALSE constant
This commit is contained in:
commit
d8764ab730
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue