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
266ac9a8
Commit
266ac9a8
authored
Feb 05, 2024
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
Feb 05, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Implement `data` getter for MessageEvent objs.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
69d4be9f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
3 deletions
+16
-3
htmlevent.c
dlls/mshtml/htmlevent.c
+11
-3
events.c
dlls/mshtml/tests/events.c
+5
-0
No files found.
dlls/mshtml/htmlevent.c
View file @
266ac9a8
...
@@ -1831,11 +1831,19 @@ static HRESULT WINAPI HTMLEventObj5_put_data(IHTMLEventObj5 *iface, BSTR v)
...
@@ -1831,11 +1831,19 @@ static HRESULT WINAPI HTMLEventObj5_put_data(IHTMLEventObj5 *iface, BSTR v)
static
HRESULT
WINAPI
HTMLEventObj5_get_data
(
IHTMLEventObj5
*
iface
,
BSTR
*
p
)
static
HRESULT
WINAPI
HTMLEventObj5_get_data
(
IHTMLEventObj5
*
iface
,
BSTR
*
p
)
{
{
HTMLEventObj
*
This
=
impl_from_IHTMLEventObj5
(
iface
);
HTMLEventObj
*
This
=
impl_from_IHTMLEventObj5
(
iface
);
IDOMMessageEvent
*
message_event
;
HRESULT
hres
;
FIXM
E
(
"(%p)->(%p)
\n
"
,
This
,
p
);
TRAC
E
(
"(%p)->(%p)
\n
"
,
This
,
p
);
*
p
=
NULL
;
if
(
!
This
->
event
||
FAILED
(
IDOMEvent_QueryInterface
(
&
This
->
event
->
IDOMEvent_iface
,
&
IID_IDOMMessageEvent
,
(
void
**
)
&
message_event
)))
{
return
S_OK
;
*
p
=
NULL
;
return
S_OK
;
}
hres
=
IDOMMessageEvent_get_data
(
message_event
,
p
);
IDOMMessageEvent_Release
(
message_event
);
return
hres
;
}
}
static
HRESULT
WINAPI
HTMLEventObj5_get_source
(
IHTMLEventObj5
*
iface
,
IDispatch
**
p
)
static
HRESULT
WINAPI
HTMLEventObj5_get_source
(
IHTMLEventObj5
*
iface
,
IDispatch
**
p
)
...
...
dlls/mshtml/tests/events.c
View file @
266ac9a8
...
@@ -1537,6 +1537,11 @@ static HRESULT WINAPI onmessage(IDispatchEx *iface, DISPID id, LCID lcid, WORD w
...
@@ -1537,6 +1537,11 @@ static HRESULT WINAPI onmessage(IDispatchEx *iface, DISPID id, LCID lcid, WORD w
ok
(
hres
==
S_OK
,
"get_url failed: %08lx
\n
"
,
hres
);
ok
(
hres
==
S_OK
,
"get_url failed: %08lx
\n
"
,
hres
);
ok
(
!
bstr
,
"url = %s
\n
"
,
wine_dbgstr_w
(
bstr
));
ok
(
!
bstr
,
"url = %s
\n
"
,
wine_dbgstr_w
(
bstr
));
hres
=
IHTMLEventObj5_get_data
(
event_obj5
,
&
bstr
);
ok
(
hres
==
S_OK
,
"get_data failed: %08lx
\n
"
,
hres
);
ok
(
!
wcscmp
(
bstr
,
L"foobar"
),
"data = %s
\n
"
,
wine_dbgstr_w
(
bstr
));
SysFreeString
(
bstr
);
hres
=
IHTMLEventObj5_get_source
(
event_obj5
,
&
disp
);
hres
=
IHTMLEventObj5_get_source
(
event_obj5
,
&
disp
);
ok
(
hres
==
S_OK
,
"get_source failed: %08lx
\n
"
,
hres
);
ok
(
hres
==
S_OK
,
"get_source failed: %08lx
\n
"
,
hres
);
...
...
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