Vincent Povirk : windowscodecs: Check for NULL in IWICComponentInfo:: GetComponentType.
Alexandre Julliard
julliard at winehq.org
Tue Jun 19 15:36:25 CDT 2012
Module: wine
Branch: master
Commit: 2846921f91713728d5c4aa0e16427e71beccd763
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2846921f91713728d5c4aa0e16427e71beccd763
Author: Vincent Povirk <vincent at codeweavers.com>
Date: Mon Apr 16 14:57:40 2012 -0500
windowscodecs: Check for NULL in IWICComponentInfo::GetComponentType.
---
dlls/windowscodecs/info.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/windowscodecs/info.c b/dlls/windowscodecs/info.c
index 92d0542..ed575a8 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;
}
More information about the wine-cvs
mailing list