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
8162797a
Commit
8162797a
authored
Oct 09, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 10, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use stored nsdoc in IHTMLOptionElementFactory::create.
parent
c3ea7272
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
12 deletions
+8
-12
htmloption.c
dlls/mshtml/htmloption.c
+8
-12
No files found.
dlls/mshtml/htmloption.c
View file @
8162797a
...
...
@@ -448,7 +448,6 @@ static HRESULT WINAPI HTMLOptionElementFactory_create(IHTMLOptionElementFactory
IHTMLOptionElement
**
optelem
)
{
HTMLOptionElementFactory
*
This
=
HTMLOPTFACTORY_THIS
(
iface
);
nsIDOMDocument
*
nsdoc
;
nsIDOMElement
*
nselem
;
nsAString
option_str
;
nsresult
nsres
;
...
...
@@ -456,21 +455,18 @@ static HRESULT WINAPI HTMLOptionElementFactory_create(IHTMLOptionElementFactory
static
const
PRUnichar
optionW
[]
=
{
'O'
,
'P'
,
'T'
,
'I'
,
'O'
,
'N'
,
0
};
TRACE
(
"(%p)->(v v v v %p)
\n
"
,
This
,
optelem
);
TRACE
(
"(%p)->(%s %s %s %s %p)
\n
"
,
This
,
debugstr_variant
(
&
text
),
debugstr_variant
(
&
value
),
debugstr_variant
(
&
defaultselected
),
debugstr_variant
(
&
selected
),
optelem
);
*
optelem
=
NULL
;
if
(
!
This
->
doc
->
nscontainer
)
return
E_FAIL
;
nsres
=
nsIWebNavigation_GetDocument
(
This
->
doc
->
nscontainer
->
navigation
,
&
nsdoc
);
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"GetDocument failed: %08x
\n
"
,
nsres
);
return
E_FAIL
;
if
(
!
This
->
doc
->
nsdoc
)
{
WARN
(
"NULL nsdoc
\n
"
);
return
E_UNEXPECTED
;
}
*
optelem
=
NULL
;
nsAString_Init
(
&
option_str
,
optionW
);
nsres
=
nsIDOMDocument_CreateElement
(
nsdoc
,
&
option_str
,
&
nselem
);
nsIDOMDocument_Release
(
nsdoc
);
nsres
=
nsIDOMHTMLDocument_CreateElement
(
This
->
doc
->
nsdoc
,
&
option_str
,
&
nselem
);
nsAString_Finish
(
&
option_str
);
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"CreateElement failed: %08x
\n
"
,
nsres
);
...
...
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