From 2846921f91713728d5c4aa0e16427e71beccd763 Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Mon, 16 Apr 2012 14:57:40 -0500 Subject: [PATCH] windowscodecs: Check for NULL in IWICComponentInfo::GetComponentType. --- dlls/windowscodecs/info.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/windowscodecs/info.c b/dlls/windowscodecs/info.c index 92d0542d4ee..ed575a85a29 100644 --- a/dlls/windowscodecs/info.c +++ b/dlls/windowscodecs/info.c @@ -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; } -- 2.11.4.GIT