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
068ce615
Commit
068ce615
authored
Jun 11, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 11, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Don't crash in set_font_size if range_cnt is 0.
parent
56eedcb6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
editor.c
dlls/mshtml/editor.c
+9
-4
No files found.
dlls/mshtml/editor.c
View file @
068ce615
...
...
@@ -364,6 +364,15 @@ static void set_font_size(HTMLDocument *This, LPCWSTR size)
if
(
!
nsselection
)
return
;
nsISelection_GetRangeCount
(
nsselection
,
&
range_cnt
);
if
(
range_cnt
!=
1
)
{
FIXME
(
"range_cnt %d not supprted
\n
"
,
range_cnt
);
if
(
!
range_cnt
)
{
nsISelection_Release
(
nsselection
);
return
;
}
}
nsres
=
nsIWebNavigation_GetDocument
(
This
->
nscontainer
->
navigation
,
&
nsdoc
);
if
(
NS_FAILED
(
nsres
))
return
;
...
...
@@ -372,10 +381,6 @@ static void set_font_size(HTMLDocument *This, LPCWSTR size)
nsAString_Init
(
&
size_str
,
wszSize
);
nsAString_Init
(
&
val_str
,
size
);
nsISelection_GetRangeCount
(
nsselection
,
&
range_cnt
);
if
(
range_cnt
!=
1
)
FIXME
(
"range_cnt %d not supprted
\n
"
,
range_cnt
);
nsIDOMDocument_CreateElement
(
nsdoc
,
&
font_str
,
&
elem
);
nsIDOMElement_SetAttribute
(
elem
,
&
size_str
,
&
val_str
);
...
...
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