windowscodecs: Check guid pointer for NULL in TiffDecoder_GetContainerFormat.
This commit is contained in:
parent
b8c4ba6603
commit
a53807e3e8
|
@ -595,6 +595,8 @@ exit:
|
||||||
static HRESULT WINAPI TiffDecoder_GetContainerFormat(IWICBitmapDecoder *iface,
|
static HRESULT WINAPI TiffDecoder_GetContainerFormat(IWICBitmapDecoder *iface,
|
||||||
GUID *pguidContainerFormat)
|
GUID *pguidContainerFormat)
|
||||||
{
|
{
|
||||||
|
if (!pguidContainerFormat) return E_INVALIDARG;
|
||||||
|
|
||||||
memcpy(pguidContainerFormat, &GUID_ContainerFormatTiff, sizeof(GUID));
|
memcpy(pguidContainerFormat, &GUID_ContainerFormatTiff, sizeof(GUID));
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue