Bug 1181265 - wallpaper over windows (driver?) returning null ptr to GetStreamCaps r=pkerr

This commit is contained in:
Randell Jesup 2015-07-09 14:23:58 -04:00
parent 9e1b74c17f
commit debd5739ae

View File

@ -492,7 +492,8 @@ int32_t DeviceInfoDS::CreateCapabilityMap(
{
hr = streamConfig->GetStreamCaps(tmp, &pmt,
reinterpret_cast<BYTE*> (&caps));
if (!FAILED(hr))
// Bug 1181265 - perhaps a helper dll returns success with nullptr
if (!FAILED(hr) && pmt)
{
if (pmt->majortype == MEDIATYPE_Video
&& pmt->formattype == FORMAT_VideoInfo2)