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
dc5aefce
Commit
dc5aefce
authored
Dec 01, 2017
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 01, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IDOMEvent::get_type implementation.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d121009f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
htmlevent.c
dlls/mshtml/htmlevent.c
+11
-2
events.c
dlls/mshtml/tests/events.c
+5
-0
No files found.
dlls/mshtml/htmlevent.c
View file @
dc5aefce
...
...
@@ -1033,8 +1033,17 @@ static HRESULT WINAPI DOMEvent_get_timeStamp(IDOMEvent *iface, ULONGLONG *p)
static
HRESULT
WINAPI
DOMEvent_get_type
(
IDOMEvent
*
iface
,
BSTR
*
p
)
{
DOMEvent
*
This
=
impl_from_IDOMEvent
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
if
(
This
->
type
)
{
*
p
=
SysAllocString
(
This
->
type
);
if
(
!*
p
)
return
E_OUTOFMEMORY
;
}
else
{
*
p
=
NULL
;
}
return
S_OK
;
}
static
HRESULT
WINAPI
DOMEvent_initEvent
(
IDOMEvent
*
iface
,
BSTR
type
,
VARIANT_BOOL
can_bubble
,
VARIANT_BOOL
cancelable
)
...
...
dlls/mshtml/tests/events.c
View file @
dc5aefce
...
...
@@ -2693,6 +2693,11 @@ static void test_create_event(IHTMLDocument2 *doc)
hres
=
IDOMEvent_stopPropagation
(
event
);
ok
(
hres
==
S_OK
,
"stopPropagation failed: %08x
\n
"
,
hres
);
str
=
(
void
*
)
0xdeadbeef
;
hres
=
IDOMEvent_get_type
(
event
,
&
str
);
ok
(
hres
==
S_OK
,
"get_type failed: %08x
\n
"
,
hres
);
ok
(
!
str
,
"type = %s
\n
"
,
wine_dbgstr_w
(
str
));
IDOMEvent_Release
(
event
);
IDocumentEvent_Release
(
doc_event
);
...
...
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