[1/5] windowscodecs: Check for NULL in IWICComponentInfo::GetComponentType.
Vincent Povirk
madewokherd at gmail.com
Mon Jun 18 14:29:28 CDT 2012
-------------- next part --------------
From 97d47d38768356c5f44d205c5ceda7377000af41 Mon Sep 17 00:00:00 2001
From: Vincent Povirk <vincent at codeweavers.com>
Date: Mon, 16 Apr 2012 14:57:40 -0500
Subject: [PATCH 01/22] 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 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;
}
--
1.7.9.5
More information about the wine-patches
mailing list