Jacek Caban : mshtml: Use GetIsCollapsed in
IHTMLSelectionObject::get_type.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Aug 13 06:31:42 CDT 2007
Module: wine
Branch: master
Commit: c1dc0e4192a9e47ad6a45a571e2f6438bcfcbc68
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c1dc0e4192a9e47ad6a45a571e2f6438bcfcbc68
Author: Jacek Caban <jacek at codeweavers.com>
Date: Sun Aug 12 17:40:36 2007 +0200
mshtml: Use GetIsCollapsed in IHTMLSelectionObject::get_type.
---
dlls/mshtml/selection.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/dlls/mshtml/selection.c b/dlls/mshtml/selection.c
index 79683f0..fe191f4 100644
--- a/dlls/mshtml/selection.c
+++ b/dlls/mshtml/selection.c
@@ -177,7 +177,7 @@ static HRESULT WINAPI HTMLSelectionObject_clear(IHTMLSelectionObject *iface)
static HRESULT WINAPI HTMLSelectionObject_get_type(IHTMLSelectionObject *iface, BSTR *p)
{
HTMLSelectionObject *This = HTMLSELOBJ_THIS(iface);
- PRInt32 range_cnt = 0;
+ PRBool collapsed = TRUE;
static const WCHAR wszNone[] = {'N','o','n','e',0};
static const WCHAR wszText[] = {'T','e','x','t',0};
@@ -185,9 +185,10 @@ static HRESULT WINAPI HTMLSelectionObject_get_type(IHTMLSelectionObject *iface,
TRACE("(%p)->(%p)\n", This, p);
if(This->nsselection)
- nsISelection_GetRangeCount(This->nsselection, &range_cnt);
+ nsISelection_GetIsCollapsed(This->nsselection, &collapsed);
- *p = SysAllocString(range_cnt ? wszText : wszNone); /* FIXME: control */
+ *p = SysAllocString(collapsed ? wszNone : wszText); /* FIXME: control */
+ TRACE("ret %s\n", debugstr_w(*p));
return S_OK;
}
More information about the wine-cvs
mailing list