Commit d0400e56 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

mf/tests: Avoid crashing if MF_BYTESTREAM_EFFECTIVE_URL is missing.

parent 48cebe2b
...@@ -6485,9 +6485,11 @@ static void test_scheme_resolvers(void) ...@@ -6485,9 +6485,11 @@ static void test_scheme_resolvers(void)
PropVariantInit(&propvar); PropVariantInit(&propvar);
hr = IMFAttributes_GetItem(attributes, &MF_BYTESTREAM_EFFECTIVE_URL, &propvar); hr = IMFAttributes_GetItem(attributes, &MF_BYTESTREAM_EFFECTIVE_URL, &propvar);
ok(hr == S_OK || broken(hr == MF_E_ATTRIBUTENOTFOUND) /* Win7 */, "got hr %#lx\n", hr); ok(hr == S_OK || broken(hr == MF_E_ATTRIBUTENOTFOUND) /* Win7 */, "got hr %#lx\n", hr);
ok(!wcsncmp(expect_domain[i], propvar.pwszVal, wcslen(expect_domain[i])) if (hr == S_OK)
|| broken(hr == MF_E_ATTRIBUTENOTFOUND) /* Win7 */, {
"got url %s\n", debugstr_w(propvar.pwszVal)); ok(!wcsncmp(expect_domain[i], propvar.pwszVal, wcslen(expect_domain[i])),
"got url %s\n", debugstr_w(propvar.pwszVal));
}
hr = PropVariantClear(&propvar); hr = PropVariantClear(&propvar);
ok(hr == S_OK, "got hr %#lx\n", hr); ok(hr == S_OK, "got hr %#lx\n", hr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment