Commit 2846921f authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

windowscodecs: Check for NULL in IWICComponentInfo::GetComponentType.

parent a59e766e
...@@ -161,6 +161,7 @@ static HRESULT WINAPI BitmapDecoderInfo_GetComponentType(IWICBitmapDecoderInfo * ...@@ -161,6 +161,7 @@ static HRESULT WINAPI BitmapDecoderInfo_GetComponentType(IWICBitmapDecoderInfo *
WICComponentType *pType) WICComponentType *pType)
{ {
TRACE("(%p,%p)\n", iface, pType); TRACE("(%p,%p)\n", iface, pType);
if (!pType) return E_INVALIDARG;
*pType = WICDecoder; *pType = WICDecoder;
return S_OK; return S_OK;
} }
...@@ -610,6 +611,7 @@ static HRESULT WINAPI BitmapEncoderInfo_GetComponentType(IWICBitmapEncoderInfo * ...@@ -610,6 +611,7 @@ static HRESULT WINAPI BitmapEncoderInfo_GetComponentType(IWICBitmapEncoderInfo *
WICComponentType *pType) WICComponentType *pType)
{ {
TRACE("(%p,%p)\n", iface, pType); TRACE("(%p,%p)\n", iface, pType);
if (!pType) return E_INVALIDARG;
*pType = WICEncoder; *pType = WICEncoder;
return S_OK; return S_OK;
} }
...@@ -884,6 +886,7 @@ static HRESULT WINAPI FormatConverterInfo_GetComponentType(IWICFormatConverterIn ...@@ -884,6 +886,7 @@ static HRESULT WINAPI FormatConverterInfo_GetComponentType(IWICFormatConverterIn
WICComponentType *pType) WICComponentType *pType)
{ {
TRACE("(%p,%p)\n", iface, pType); TRACE("(%p,%p)\n", iface, pType);
if (!pType) return E_INVALIDARG;
*pType = WICPixelFormatConverter; *pType = WICPixelFormatConverter;
return S_OK; return S_OK;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment