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
3ea5a319
Commit
3ea5a319
authored
Sep 01, 2022
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
Sep 01, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Do not enumerate hidden builtin props.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
f8bb1d7e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
dispex.c
dlls/mshtml/dispex.c
+5
-3
No files found.
dlls/mshtml/dispex.c
View file @
3ea5a319
...
...
@@ -396,6 +396,9 @@ static void add_func_info(dispex_data_t *data, tid_t tid, const FUNCDESC *desc,
}
else
if
(
desc
->
invkind
&
(
DISPATCH_PROPERTYPUT
|
DISPATCH_PROPERTYGET
))
{
VARTYPE
vt
=
VT_EMPTY
;
if
(
desc
->
wFuncFlags
&
FUNCFLAG_FHIDDEN
)
info
->
func_disp_idx
=
-
2
;
if
(
desc
->
invkind
&
DISPATCH_PROPERTYGET
)
{
vt
=
desc
->
elemdescFunc
.
tdesc
.
vt
;
info
->
get_vtbl_off
=
desc
->
oVft
/
sizeof
(
void
*
);
...
...
@@ -1371,7 +1374,7 @@ static HRESULT invoke_builtin_prop(DispatchEx *This, DISPID id, LCID lcid, WORD
if
(
FAILED
(
hres
))
return
hres
;
if
(
func
->
func_disp_idx
!=
-
1
)
if
(
func
->
func_disp_idx
>=
0
)
return
function_invoke
(
This
,
func
,
flags
,
dp
,
res
,
ei
,
caller
);
if
(
func
->
hook
)
{
...
...
@@ -1460,7 +1463,7 @@ HRESULT remove_attribute(DispatchEx *This, DISPID id, VARIANT_BOOL *success)
return
hres
;
/* For builtin functions, we set their value to the original function. */
if
(
func
->
func_disp_idx
!=
-
1
)
{
if
(
func
->
func_disp_idx
>=
0
)
{
func_obj_entry_t
*
entry
;
if
(
!
This
->
dynamic_data
||
!
This
->
dynamic_data
->
func_disps
...
...
@@ -1889,7 +1892,6 @@ static HRESULT WINAPI DispatchEx_GetNextDispID(IDispatchEx *iface, DWORD grfdex,
}
while
(
func
<
This
->
info
->
funcs
+
This
->
info
->
func_cnt
)
{
/* FIXME: Skip hidden properties */
if
(
func
->
func_disp_idx
==
-
1
)
{
*
pid
=
func
->
id
;
return
S_OK
;
...
...
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