mshtml: Added IHTMLMimeTypesCollection::get_length implementation.
This commit is contained in:
parent
8fce028694
commit
2f8da934c7
|
@ -294,8 +294,12 @@ static HRESULT WINAPI HTMLMimeTypesCollection_Invoke(IHTMLMimeTypesCollection *i
|
|||
static HRESULT WINAPI HTMLMimeTypesCollection_get_length(IHTMLMimeTypesCollection *iface, LONG *p)
|
||||
{
|
||||
HTMLMimeTypesCollection *This = impl_from_IHTMLMimeTypesCollection(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
return E_NOTIMPL;
|
||||
|
||||
TRACE("(%p)->(%p)\n", This, p);
|
||||
|
||||
/* This is just a stub for compatibility with other browser in IE */
|
||||
*p = 0;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
static const IHTMLMimeTypesCollectionVtbl HTMLMimeTypesCollectionVtbl = {
|
||||
|
|
|
@ -3830,6 +3830,7 @@ static void test_plugins_col(IOmNavigator *nav)
|
|||
static void test_mime_types_col(IOmNavigator *nav)
|
||||
{
|
||||
IHTMLMimeTypesCollection *col, *col2;
|
||||
LONG length;
|
||||
ULONG ref;
|
||||
HRESULT hres;
|
||||
|
||||
|
@ -3843,6 +3844,11 @@ static void test_mime_types_col(IOmNavigator *nav)
|
|||
|
||||
test_disp((IUnknown*)col, &IID_IHTMLMimeTypesCollection, "[object]");
|
||||
|
||||
length = 0xdeadbeef;
|
||||
hres = IHTMLMimeTypesCollection_get_length(col, &length);
|
||||
ok(hres == S_OK, "get_length failed: %08x\n", hres);
|
||||
ok(!length, "length = %d\n", length);
|
||||
|
||||
ref = IHTMLMimeTypesCollection_Release(col);
|
||||
ok(!ref, "ref=%d\n", ref);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue