Signed-off-by: Gabriel Ivăncescu gabrielopcode@gmail.com --- dlls/mshtml/omnavigator.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/dlls/mshtml/omnavigator.c b/dlls/mshtml/omnavigator.c index eff9576..2847e34 100644 --- a/dlls/mshtml/omnavigator.c +++ b/dlls/mshtml/omnavigator.c @@ -1313,8 +1313,7 @@ static HRESULT WINAPI OmNavigator_toString(IOmNavigator *iface, BSTR *String) if(!String) return E_INVALIDARG;
- *String = SysAllocString(dispex_compat_mode(&This->dispex) < COMPAT_MODE_IE9 - ? L"[object]" : L"[object Navigator]"); + *String = SysAllocString(dispex_tostring(&This->dispex)); return *String ? S_OK : E_OUTOFMEMORY; }
@@ -1471,7 +1470,9 @@ static const tid_t OmNavigator_iface_tids[] = { static dispex_static_data_t OmNavigator_dispex = { NULL, DispHTMLNavigator_tid, - OmNavigator_iface_tids + OmNavigator_iface_tids, + NULL, + L"[object Navigator]" };
HRESULT create_navigator(compat_mode_t compat_mode, IOmNavigator **navigator)