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
b6a19123
Commit
b6a19123
authored
May 01, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
May 01, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Added support for VT_I2 in disp_propget.
parent
9700e9c7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
7 deletions
+19
-7
dispex.c
dlls/jscript/dispex.c
+19
-7
No files found.
dlls/jscript/dispex.c
View file @
b6a19123
...
...
@@ -958,6 +958,15 @@ jsdisp_t *iface_to_jsdisp(IUnknown *iface)
return
ret
;
}
static
void
ensure_retval_type
(
VARIANT
*
v
)
{
switch
(
V_VT
(
v
))
{
case
VT_I2
:
V_VT
(
v
)
=
VT_I4
;
V_I4
(
v
)
=
V_I2
(
v
);
}
}
HRESULT
jsdisp_get_id
(
jsdisp_t
*
jsdisp
,
const
WCHAR
*
name
,
DWORD
flags
,
DISPID
*
id
)
{
dispex_prop_t
*
prop
;
...
...
@@ -1203,18 +1212,21 @@ HRESULT disp_propget(script_ctx_t *ctx, IDispatch *disp, DISPID id, VARIANT *val
}
hres
=
IDispatch_QueryInterface
(
disp
,
&
IID_IDispatchEx
,
(
void
**
)
&
dispex
);
if
(
FAILED
(
hres
))
{
if
(
SUCCEEDED
(
hres
))
{
hres
=
IDispatchEx_InvokeEx
(
dispex
,
id
,
ctx
->
lcid
,
INVOKE_PROPERTYGET
,
&
dp
,
val
,
&
ei
->
ei
,
&
ctx
->
jscaller
->
IServiceProvider_iface
);
IDispatchEx_Release
(
dispex
);
}
else
{
ULONG
err
=
0
;
TRACE
(
"using IDispatch
\n
"
);
return
IDispatch_Invoke
(
disp
,
id
,
&
IID_NULL
,
ctx
->
lcid
,
INVOKE_PROPERTYGET
,
&
dp
,
val
,
&
ei
->
ei
,
&
err
);
hres
=
IDispatch_Invoke
(
disp
,
id
,
&
IID_NULL
,
ctx
->
lcid
,
INVOKE_PROPERTYGET
,
&
dp
,
val
,
&
ei
->
ei
,
&
err
);
}
if
(
FAILED
(
hres
))
return
hres
;
hres
=
IDispatchEx_InvokeEx
(
dispex
,
id
,
ctx
->
lcid
,
INVOKE_PROPERTYGET
,
&
dp
,
val
,
&
ei
->
ei
,
&
ctx
->
jscaller
->
IServiceProvider_iface
);
IDispatchEx_Release
(
dispex
);
return
hres
;
ensure_retval_type
(
val
);
return
S_OK
;
}
HRESULT
jsdisp_delete_idx
(
jsdisp_t
*
obj
,
DWORD
idx
)
...
...
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