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
7a74f5b5
Commit
7a74f5b5
authored
Oct 08, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 09, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use stored nsdoc in get_compatMode.
parent
e604ae3e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
htmldoc5.c
dlls/mshtml/htmldoc5.c
+5
-6
No files found.
dlls/mshtml/htmldoc5.c
View file @
7a74f5b5
...
@@ -215,7 +215,6 @@ static HRESULT WINAPI HTMLDocument5_get_onbeforedeactivate(IHTMLDocument5 *iface
...
@@ -215,7 +215,6 @@ static HRESULT WINAPI HTMLDocument5_get_onbeforedeactivate(IHTMLDocument5 *iface
static
HRESULT
WINAPI
HTMLDocument5_get_compatMode
(
IHTMLDocument5
*
iface
,
BSTR
*
p
)
static
HRESULT
WINAPI
HTMLDocument5_get_compatMode
(
IHTMLDocument5
*
iface
,
BSTR
*
p
)
{
{
HTMLDocument
*
This
=
HTMLDOC5_THIS
(
iface
);
HTMLDocument
*
This
=
HTMLDOC5_THIS
(
iface
);
nsIDOMDocument
*
nsdoc
;
nsIDOMNSHTMLDocument
*
nshtmldoc
;
nsIDOMNSHTMLDocument
*
nshtmldoc
;
nsAString
mode_str
;
nsAString
mode_str
;
const
PRUnichar
*
mode
;
const
PRUnichar
*
mode
;
...
@@ -223,12 +222,12 @@ static HRESULT WINAPI HTMLDocument5_get_compatMode(IHTMLDocument5 *iface, BSTR *
...
@@ -223,12 +222,12 @@ static HRESULT WINAPI HTMLDocument5_get_compatMode(IHTMLDocument5 *iface, BSTR *
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
nsres
=
nsIWebNavigation_GetDocument
(
This
->
nscontainer
->
navigation
,
&
nsdoc
);
if
(
!
This
->
nsdoc
)
{
if
(
NS_FAILED
(
nsres
))
WARN
(
"NULL nsdoc
\n
"
);
ERR
(
"GetDocument failed: %08x
\n
"
,
nsres
);
return
E_UNEXPECTED
;
}
nsres
=
nsIDOMDocument_QueryInterface
(
nsdoc
,
&
IID_nsIDOMNSHTMLDocument
,
(
void
**
)
&
nshtmldoc
);
nsres
=
nsIDOMHTMLDocument_QueryInterface
(
This
->
nsdoc
,
&
IID_nsIDOMNSHTMLDocument
,
(
void
**
)
&
nshtmldoc
);
nsIDOMDocument_Release
(
nsdoc
);
if
(
NS_FAILED
(
nsres
))
{
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"Could not get nsIDOMNSHTMLDocument: %08x
\n
"
,
nsres
);
ERR
(
"Could not get nsIDOMNSHTMLDocument: %08x
\n
"
,
nsres
);
return
S_OK
;
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