windowscodecs: Check for NULL in IWICComponentInfo::GetComponentType.

This commit is contained in:
Vincent Povirk 2012-04-16 14:57:40 -05:00 committed by Alexandre Julliard
parent a59e766ea7
commit 2846921f91
1 changed files with 3 additions and 0 deletions

View File

@ -161,6 +161,7 @@ static HRESULT WINAPI BitmapDecoderInfo_GetComponentType(IWICBitmapDecoderInfo *
WICComponentType *pType)
{
TRACE("(%p,%p)\n", iface, pType);
if (!pType) return E_INVALIDARG;
*pType = WICDecoder;
return S_OK;
}
@ -610,6 +611,7 @@ static HRESULT WINAPI BitmapEncoderInfo_GetComponentType(IWICBitmapEncoderInfo *
WICComponentType *pType)
{
TRACE("(%p,%p)\n", iface, pType);
if (!pType) return E_INVALIDARG;
*pType = WICEncoder;
return S_OK;
}
@ -884,6 +886,7 @@ static HRESULT WINAPI FormatConverterInfo_GetComponentType(IWICFormatConverterIn
WICComponentType *pType)
{
TRACE("(%p,%p)\n", iface, pType);
if (!pType) return E_INVALIDARG;
*pType = WICPixelFormatConverter;
return S_OK;
}