mshtml: Added IOmNavigator::get_platform implementation.

This commit is contained in:
Jacek Caban 2008-07-28 22:01:25 +02:00 committed by Alexandre Julliard
parent 7e34579423
commit 158488fdc9
2 changed files with 13 additions and 2 deletions

View File

@ -237,8 +237,13 @@ static HRESULT WINAPI OmNavigator_get_userLanguage(IOmNavigator *iface, BSTR *p)
static HRESULT WINAPI OmNavigator_get_platform(IOmNavigator *iface, BSTR *p)
{
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)

View File

@ -1845,6 +1845,12 @@ static void test_navigator(IHTMLDocument2 *doc)
ok(!strcmp_wa(bstr, "Mozilla"), "Unexpected appCodeName %s\n", dbgstr_w(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);
ok(!ref, "navigator should be destroyed here\n");
}