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
0210cb93
Commit
0210cb93
authored
Jun 04, 2013
by
Andrew Eikum
Committed by
Alexandre Julliard
Jun 04, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Only copy previous function name if both are property accessors.
parent
09d787d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
7 deletions
+16
-7
typelib.c
dlls/oleaut32/typelib.c
+16
-7
No files found.
dlls/oleaut32/typelib.c
View file @
0210cb93
...
...
@@ -2240,6 +2240,13 @@ static void MSFT_ResolveReferencedTypes(TLBContext *pcx, ITypeInfoImpl *pTI, TYP
}
}
static
int
TLB_is_propgetput
(
INVOKEKIND
invkind
)
{
return
(
invkind
==
INVOKE_PROPERTYGET
||
invkind
==
INVOKE_PROPERTYPUT
||
invkind
==
INVOKE_PROPERTYPUTREF
);
}
static
void
MSFT_DoFuncs
(
TLBContext
*
pcx
,
ITypeInfoImpl
*
pTI
,
...
...
@@ -2294,13 +2301,6 @@ MSFT_DoFuncs(TLBContext* pcx,
MSFT_ReadLEDWords
(
&
nameoffset
,
sizeof
(
INT
),
pcx
,
offset
+
infolen
+
(
cFuncs
+
cVars
+
i
+
1
)
*
sizeof
(
INT
));
/* nameoffset is sometimes -1 on the second half of a propget/propput
* pair of functions */
if
((
nameoffset
==
-
1
)
&&
(
i
>
0
))
ptfd
->
Name
=
ptfd_prev
->
Name
;
else
ptfd
->
Name
=
MSFT_ReadName
(
pcx
,
nameoffset
);
/* read the function information record */
MSFT_ReadLEDWords
(
&
reclength
,
sizeof
(
pFuncRec
->
Info
),
pcx
,
recoffset
);
...
...
@@ -2351,6 +2351,15 @@ MSFT_DoFuncs(TLBContext* pcx,
ptfd
->
funcdesc
.
oVft
=
pFuncRec
->
VtableOffset
&
~
1
;
ptfd
->
funcdesc
.
wFuncFlags
=
LOWORD
(
pFuncRec
->
Flags
)
;
/* nameoffset is sometimes -1 on the second half of a propget/propput
* pair of functions */
if
((
nameoffset
==
-
1
)
&&
(
i
>
0
)
&&
TLB_is_propgetput
(
ptfd_prev
->
funcdesc
.
invkind
)
&&
TLB_is_propgetput
(
ptfd
->
funcdesc
.
invkind
))
ptfd
->
Name
=
ptfd_prev
->
Name
;
else
ptfd
->
Name
=
MSFT_ReadName
(
pcx
,
nameoffset
);
MSFT_GetTdesc
(
pcx
,
pFuncRec
->
DataType
,
&
ptfd
->
funcdesc
.
elemdescFunc
.
tdesc
,
...
...
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