mirror of https://github.com/axmolengine/axmol.git
WICImageLoader incorrect use S_FALSE constant
This commit is contained in:
parent
f2c999441a
commit
3e16236a95
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue