Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
11d2dfae
Commit
11d2dfae
authored
Sep 07, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 07, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript: Added ScriptDisp::InvokeEx implementation.
parent
40001df4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
3 deletions
+30
-3
vbdisp.c
dlls/vbscript/vbdisp.c
+30
-3
No files found.
dlls/vbscript/vbdisp.c
View file @
11d2dfae
...
...
@@ -97,7 +97,7 @@ static VARIANT *get_propput_arg(const DISPPARAMS *dp)
return
NULL
;
}
static
HRESULT
invoke_variant_prop
(
vbdisp_t
*
This
,
VARIANT
*
v
,
WORD
flags
,
DISPPARAMS
*
dp
,
VARIANT
*
res
)
static
HRESULT
invoke_variant_prop
(
VARIANT
*
v
,
WORD
flags
,
DISPPARAMS
*
dp
,
VARIANT
*
res
)
{
HRESULT
hres
;
...
...
@@ -403,7 +403,7 @@ static HRESULT WINAPI DispatchEx_InvokeEx(IDispatchEx *iface, DISPID id, LCID lc
}
if
(
id
<
This
->
desc
->
prop_cnt
+
This
->
desc
->
func_cnt
)
return
invoke_variant_prop
(
This
,
This
->
props
+
(
id
-
This
->
desc
->
func_cnt
),
wFlags
,
pdp
,
pvarRes
);
return
invoke_variant_prop
(
This
->
props
+
(
id
-
This
->
desc
->
func_cnt
),
wFlags
,
pdp
,
pvarRes
);
if
(
This
->
desc
->
builtin_prop_cnt
)
{
unsigned
min
=
0
,
max
=
This
->
desc
->
builtin_prop_cnt
-
1
,
i
;
...
...
@@ -579,6 +579,11 @@ static inline DISPID ident_to_id(ScriptDisp *This, ident_map_t *ident)
return
(
ident
-
This
->
ident_map
)
+
1
;
}
static
inline
ident_map_t
*
id_to_ident
(
ScriptDisp
*
This
,
DISPID
id
)
{
return
0
<
id
&&
id
<=
This
->
ident_map_cnt
?
This
->
ident_map
+
id
-
1
:
NULL
;
}
static
ident_map_t
*
add_ident
(
ScriptDisp
*
This
,
const
WCHAR
*
name
)
{
ident_map_t
*
ret
;
...
...
@@ -748,8 +753,30 @@ static HRESULT WINAPI ScriptDisp_InvokeEx(IDispatchEx *iface, DISPID id, LCID lc
VARIANT
*
pvarRes
,
EXCEPINFO
*
pei
,
IServiceProvider
*
pspCaller
)
{
ScriptDisp
*
This
=
ScriptDisp_from_IDispatchEx
(
iface
);
ident_map_t
*
ident
;
HRESULT
hres
;
TRACE
(
"(%p)->(%x %x %x %p %p %p %p)
\n
"
,
This
,
id
,
lcid
,
wFlags
,
pdp
,
pvarRes
,
pei
,
pspCaller
);
return
DISP_E_MEMBERNOTFOUND
;
ident
=
id_to_ident
(
This
,
id
);
if
(
!
ident
)
return
DISP_E_MEMBERNOTFOUND
;
if
(
ident
->
is_var
)
{
if
(
ident
->
u
.
var
->
is_const
)
{
FIXME
(
"const not supported
\n
"
);
return
E_NOTIMPL
;
}
return
invoke_variant_prop
(
&
ident
->
u
.
var
->
v
,
wFlags
,
pdp
,
pvarRes
);
}
IActiveScriptSite_OnEnterScript
(
This
->
ctx
->
site
);
hres
=
exec_script
(
This
->
ctx
,
ident
->
u
.
func
,
NULL
,
pdp
,
pvarRes
);
IActiveScriptSite_OnLeaveScript
(
This
->
ctx
->
site
);
return
hres
;
}
static
HRESULT
WINAPI
ScriptDisp_DeleteMemberByName
(
IDispatchEx
*
iface
,
BSTR
bstrName
,
DWORD
grfdex
)
...
...
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