Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
75ab8e20
Commit
75ab8e20
authored
Feb 05, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 08, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Avoid unnecessary prototype lookup.
parent
10c99310
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
dispex.c
dlls/jscript/dispex.c
+7
-4
No files found.
dlls/jscript/dispex.c
View file @
75ab8e20
...
...
@@ -190,12 +190,15 @@ static HRESULT find_prop_name_prot(DispatchEx *This, const WCHAR *name, dispex_p
return
S_OK
;
}
static
HRESULT
ensure_prop_name
(
DispatchEx
*
This
,
const
WCHAR
*
name
,
DWORD
create_flags
,
dispex_prop_t
**
ret
)
static
HRESULT
ensure_prop_name
(
DispatchEx
*
This
,
const
WCHAR
*
name
,
BOOL
search_prot
,
DWORD
create_flags
,
dispex_prop_t
**
ret
)
{
dispex_prop_t
*
prop
;
HRESULT
hres
;
hres
=
find_prop_name_prot
(
This
,
name
,
&
prop
);
if
(
search_prot
)
hres
=
find_prop_name_prot
(
This
,
name
,
&
prop
);
else
hres
=
find_prop_name
(
This
,
name
,
&
prop
);
if
(
SUCCEEDED
(
hres
)
&&
!
prop
)
{
TRACE
(
"creating prop %s
\n
"
,
debugstr_w
(
name
));
...
...
@@ -845,7 +848,7 @@ HRESULT jsdisp_get_id(DispatchEx *jsdisp, const WCHAR *name, DWORD flags, DISPID
HRESULT
hres
;
if
(
flags
&
fdexNameEnsure
)
hres
=
ensure_prop_name
(
jsdisp
,
name
,
PROPF_ENUM
,
&
prop
);
hres
=
ensure_prop_name
(
jsdisp
,
name
,
TRUE
,
PROPF_ENUM
,
&
prop
);
else
hres
=
find_prop_name_prot
(
jsdisp
,
name
,
&
prop
);
if
(
FAILED
(
hres
))
...
...
@@ -947,7 +950,7 @@ HRESULT jsdisp_propput_name(DispatchEx *obj, const WCHAR *name, VARIANT *val, js
dispex_prop_t
*
prop
;
HRESULT
hres
;
hres
=
ensure_prop_name
(
obj
,
name
,
PROPF_ENUM
,
&
prop
);
hres
=
ensure_prop_name
(
obj
,
name
,
FALSE
,
PROPF_ENUM
,
&
prop
);
if
(
FAILED
(
hres
))
return
hres
;
...
...
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