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
44223acc
Commit
44223acc
authored
Jun 27, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 30, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added VT_BSTR support to IHTMLWindow3::setTimeout.
Resend without test depending on JScript.
parent
6971db7e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
8 deletions
+27
-8
htmlwindow.c
dlls/mshtml/htmlwindow.c
+27
-8
No files found.
dlls/mshtml/htmlwindow.c
View file @
44223acc
...
@@ -841,25 +841,44 @@ static HRESULT WINAPI HTMLWindow3_detachEvent(IHTMLWindow3 *iface, BSTR event, I
...
@@ -841,25 +841,44 @@ static HRESULT WINAPI HTMLWindow3_detachEvent(IHTMLWindow3 *iface, BSTR event, I
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
static
HRESULT
WINAPI
HTMLWindow3_setTimeout
(
IHTMLWindow3
*
iface
,
VARIANT
*
expression
,
long
msec
,
static
HRESULT
window_set_timer
(
HTMLWindow
*
This
,
VARIANT
*
expr
,
long
msec
,
VARIANT
*
language
,
long
*
timer_id
)
VARIANT
*
language
,
long
*
timerID
)
{
{
HTMLWindow
*
This
=
HTMLWINDOW3_THIS
(
iface
);
IDispatch
*
disp
=
NULL
;
TRACE
(
"(%p)->(%p(%d) %ld %p %p)
\n
"
,
This
,
expression
,
V_VT
(
expression
),
msec
,
language
,
timerID
);
switch
(
V_VT
(
expr
ession
))
{
switch
(
V_VT
(
expr
))
{
case
VT_DISPATCH
:
case
VT_DISPATCH
:
*
timerID
=
set_task_timer
(
This
->
doc
,
msec
,
V_DISPATCH
(
expression
));
disp
=
V_DISPATCH
(
expr
);
IDispatch_AddRef
(
disp
);
break
;
case
VT_BSTR
:
disp
=
script_parse_event
(
This
->
doc
,
V_BSTR
(
expr
));
break
;
break
;
default:
default:
FIXME
(
"unimplemented vt=%d
\n
"
,
V_VT
(
expression
));
FIXME
(
"unimplemented vt=%d
\n
"
,
V_VT
(
expr
));
return
E_NOTIMPL
;
}
}
if
(
!
disp
)
return
E_FAIL
;
*
timer_id
=
set_task_timer
(
This
->
doc
,
msec
,
disp
);
IDispatch_Release
(
disp
);
return
S_OK
;
return
S_OK
;
}
}
static
HRESULT
WINAPI
HTMLWindow3_setTimeout
(
IHTMLWindow3
*
iface
,
VARIANT
*
expression
,
long
msec
,
VARIANT
*
language
,
long
*
timerID
)
{
HTMLWindow
*
This
=
HTMLWINDOW3_THIS
(
iface
);
TRACE
(
"(%p)->(%p(%d) %ld %p %p)
\n
"
,
This
,
expression
,
V_VT
(
expression
),
msec
,
language
,
timerID
);
return
window_set_timer
(
This
,
expression
,
msec
,
language
,
timerID
);
}
static
HRESULT
WINAPI
HTMLWindow3_setInterval
(
IHTMLWindow3
*
iface
,
VARIANT
*
expression
,
long
msec
,
static
HRESULT
WINAPI
HTMLWindow3_setInterval
(
IHTMLWindow3
*
iface
,
VARIANT
*
expression
,
long
msec
,
VARIANT
*
language
,
long
*
timerID
)
VARIANT
*
language
,
long
*
timerID
)
{
{
...
...
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