windowscodecs: Check guid pointer for NULL in TiffDecoder_GetContainerFormat.

This commit is contained in:
Dmitry Timoshkov 2012-09-12 15:10:26 +09:00 committed by Alexandre Julliard
parent b8c4ba6603
commit a53807e3e8
1 changed files with 2 additions and 0 deletions

View File

@ -595,6 +595,8 @@ exit:
static HRESULT WINAPI TiffDecoder_GetContainerFormat(IWICBitmapDecoder *iface,
GUID *pguidContainerFormat)
{
if (!pguidContainerFormat) return E_INVALIDARG;
memcpy(pguidContainerFormat, &GUID_ContainerFormatTiff, sizeof(GUID));
return S_OK;
}