diff --git a/dlls/mshtml/omnavigator.c b/dlls/mshtml/omnavigator.c index 73e55dd015d..bfc3d23cee4 100644 --- a/dlls/mshtml/omnavigator.c +++ b/dlls/mshtml/omnavigator.c @@ -693,8 +693,14 @@ static HRESULT WINAPI OmNavigator_get_platform(IOmNavigator *iface, BSTR *p) static HRESULT WINAPI OmNavigator_get_appMinorVersion(IOmNavigator *iface, BSTR *p) { OmNavigator *This = impl_from_IOmNavigator(iface); - FIXME("(%p)->(%p)\n", This, p); - return E_NOTIMPL; + + static const WCHAR zeroW[] = {'0',0}; + + TRACE("(%p)->(%p)\n", This, p); + + /* NOTE: MSIE returns "0" or values like ";SP2;". Returning "0" should be enough. */ + *p = SysAllocString(zeroW); + return S_OK; } static HRESULT WINAPI OmNavigator_get_connectionSpeed(IOmNavigator *iface, LONG *p) diff --git a/dlls/mshtml/tests/dom.c b/dlls/mshtml/tests/dom.c index bba222f94c8..a7998d544f8 100644 --- a/dlls/mshtml/tests/dom.c +++ b/dlls/mshtml/tests/dom.c @@ -3942,6 +3942,12 @@ static void test_navigator(IHTMLDocument2 *doc) skip("nonstandard user agent\n"); } + bstr = NULL; + hres = IOmNavigator_get_appMinorVersion(navigator, &bstr); + ok(hres == S_OK, "get_appMonorVersion failed: %08x\n", hres); + ok(bstr != NULL, "appMinorVersion returned NULL\n"); + SysFreeString(bstr); + test_mime_types_col(navigator); ref = IOmNavigator_Release(navigator);