Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
c1dc0e41
Commit
c1dc0e41
authored
Aug 12, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 13, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use GetIsCollapsed in IHTMLSelectionObject::get_type.
parent
50868fe7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
selection.c
dlls/mshtml/selection.c
+4
-3
No files found.
dlls/mshtml/selection.c
View file @
c1dc0e41
...
...
@@ -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
);
PR
Int32
range_cnt
=
0
;
PR
Bool
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_Get
RangeCount
(
This
->
nsselection
,
&
range_cnt
);
nsISelection_Get
IsCollapsed
(
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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment