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
0d1309b7
Commit
0d1309b7
authored
Nov 14, 2022
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
Nov 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Forward toString to the document node.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
cab7ce59
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
10 deletions
+8
-10
oleobj.c
dlls/mshtml/oleobj.c
+1
-10
events.c
dlls/mshtml/tests/events.c
+7
-0
No files found.
dlls/mshtml/oleobj.c
View file @
0d1309b7
...
...
@@ -2384,16 +2384,7 @@ HTMLDOCUMENTOBJ_FWD_TO_NODE_1(HTMLDocument2, put_onbeforeupdate, VARIANT)
HTMLDOCUMENTOBJ_FWD_TO_NODE_1
(
HTMLDocument2
,
get_onbeforeupdate
,
VARIANT
*
)
HTMLDOCUMENTOBJ_FWD_TO_NODE_1
(
HTMLDocument2
,
put_onerrorupdate
,
VARIANT
)
HTMLDOCUMENTOBJ_FWD_TO_NODE_1
(
HTMLDocument2
,
get_onerrorupdate
,
VARIANT
*
)
static
HRESULT
WINAPI
DocObjHTMLDocument2_toString
(
IHTMLDocument2
*
iface
,
BSTR
*
String
)
{
HTMLDocumentObj
*
This
=
impl_from_IHTMLDocument2
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
String
);
return
dispex_to_string
(
&
This
->
dispex
,
String
);
}
HTMLDOCUMENTOBJ_FWD_TO_NODE_1
(
HTMLDocument2
,
toString
,
BSTR
*
)
HTMLDOCUMENTOBJ_FWD_TO_NODE_3
(
HTMLDocument2
,
createStyleSheet
,
BSTR
,
LONG
,
IHTMLStyleSheet
**
)
static
const
IHTMLDocument2Vtbl
DocObjHTMLDocument2Vtbl
=
{
...
...
dlls/mshtml/tests/events.c
View file @
0d1309b7
...
...
@@ -2786,6 +2786,13 @@ static void test_doc_obj(IHTMLDocument2 *doc)
CHECK_CALLED
(
docobj_onclick
);
}
bstr
=
NULL
;
hres
=
IHTMLDocument2_toString
(
doc
,
&
bstr
);
ok
(
hres
==
S_OK
,
"toString failed: %08lx
\n
"
,
hres
);
todo_wine_if
(
document_mode
>=
9
)
ok
(
!
wcscmp
(
bstr
,
(
document_mode
<
9
?
L"[object]"
:
L"[object Document]"
)),
"toString returned %s
\n
"
,
wine_dbgstr_w
(
bstr
));
SysFreeString
(
bstr
);
/* Navigate to a different document mode page, checking using the same doc obj.
Test that it breaks COM rules, since IEventTarget is conditionally exposed.
All the events registered on the old doc node are also removed. */
...
...
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