Commit ce7c9415 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Added get_type implementation.

parent 489b0f50
...@@ -160,8 +160,18 @@ static HRESULT WINAPI HTMLSelectionObject_clear(IHTMLSelectionObject *iface) ...@@ -160,8 +160,18 @@ static HRESULT WINAPI HTMLSelectionObject_clear(IHTMLSelectionObject *iface)
static HRESULT WINAPI HTMLSelectionObject_get_type(IHTMLSelectionObject *iface, BSTR *p) static HRESULT WINAPI HTMLSelectionObject_get_type(IHTMLSelectionObject *iface, BSTR *p)
{ {
HTMLSelectionObject *This = HTMLSELOBJ_THIS(iface); HTMLSelectionObject *This = HTMLSELOBJ_THIS(iface);
FIXME("(%p)->(%p)\n", This, p); PRInt32 range_cnt = 0;
return E_NOTIMPL;
static const WCHAR wszNone[] = {'N','o','n','e',0};
static const WCHAR wszText[] = {'T','e','x','t',0};
TRACE("(%p)->(%p)\n", This, p);
if(This->nsselection)
nsISelection_GetRangeCount(This->nsselection, &range_cnt);
*p = SysAllocString(range_cnt ? wszText : wszNone); /* FIXME: control */
return S_OK;
} }
#undef HTMLSELOBJ_THIS #undef HTMLSELOBJ_THIS
......
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