Commit 2f8da934 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Added IHTMLMimeTypesCollection::get_length implementation.

parent 8fce0286
......@@ -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);
}
......
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