mshtml: Added IOmNavigator::get_platform implementation.
This commit is contained in:
parent
7e34579423
commit
158488fdc9
|
@ -237,8 +237,13 @@ static HRESULT WINAPI OmNavigator_get_userLanguage(IOmNavigator *iface, BSTR *p)
|
||||||
static HRESULT WINAPI OmNavigator_get_platform(IOmNavigator *iface, BSTR *p)
|
static HRESULT WINAPI OmNavigator_get_platform(IOmNavigator *iface, BSTR *p)
|
||||||
{
|
{
|
||||||
OmNavigator *This = OMNAVIGATOR_THIS(iface);
|
OmNavigator *This = OMNAVIGATOR_THIS(iface);
|
||||||
FIXME("(%p)->(%p)\n", This, p);
|
|
||||||
return E_NOTIMPL;
|
static const WCHAR win32W[] = {'W','i','n','3','2',0};
|
||||||
|
|
||||||
|
TRACE("(%p)->(%p)\n", This, p);
|
||||||
|
|
||||||
|
*p = SysAllocString(win32W);
|
||||||
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI OmNavigator_get_appMinorVersion(IOmNavigator *iface, BSTR *p)
|
static HRESULT WINAPI OmNavigator_get_appMinorVersion(IOmNavigator *iface, BSTR *p)
|
||||||
|
|
|
@ -1845,6 +1845,12 @@ static void test_navigator(IHTMLDocument2 *doc)
|
||||||
ok(!strcmp_wa(bstr, "Mozilla"), "Unexpected appCodeName %s\n", dbgstr_w(bstr));
|
ok(!strcmp_wa(bstr, "Mozilla"), "Unexpected appCodeName %s\n", dbgstr_w(bstr));
|
||||||
SysFreeString(bstr);
|
SysFreeString(bstr);
|
||||||
|
|
||||||
|
bstr = NULL;
|
||||||
|
hres = IOmNavigator_get_platform(navigator, &bstr);
|
||||||
|
ok(hres == S_OK, "get_appMinorVersion failed: %08x\n", hres);
|
||||||
|
ok(!strcmp_wa(bstr, "Win32"), "unexpected platform %s\n", dbgstr_w(bstr));
|
||||||
|
SysFreeString(bstr);
|
||||||
|
|
||||||
ref = IOmNavigator_Release(navigator);
|
ref = IOmNavigator_Release(navigator);
|
||||||
ok(!ref, "navigator should be destroyed here\n");
|
ok(!ref, "navigator should be destroyed here\n");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue