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
7eb67082
Commit
7eb67082
authored
Mar 31, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Apr 01, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Factor out type_pointer_is_iface().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d97b421b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
18 deletions
+25
-18
ndr_typelib.c
dlls/rpcrt4/ndr_typelib.c
+25
-18
No files found.
dlls/rpcrt4/ndr_typelib.c
View file @
7eb67082
...
...
@@ -205,6 +205,29 @@ static unsigned int type_memsize(ITypeInfo *typeinfo, TYPEDESC *desc)
}
}
static
BOOL
type_pointer_is_iface
(
ITypeInfo
*
typeinfo
,
TYPEDESC
*
tdesc
)
{
ITypeInfo
*
refinfo
;
BOOL
ret
=
FALSE
;
TYPEATTR
*
attr
;
if
(
tdesc
->
vt
==
VT_USERDEFINED
)
{
ITypeInfo_GetRefTypeInfo
(
typeinfo
,
tdesc
->
hreftype
,
&
refinfo
);
ITypeInfo_GetTypeAttr
(
refinfo
,
&
attr
);
if
(
attr
->
typekind
==
TKIND_INTERFACE
||
attr
->
typekind
==
TKIND_DISPATCH
||
attr
->
typekind
==
TKIND_COCLASS
)
ret
=
TRUE
;
ITypeInfo_ReleaseTypeAttr
(
refinfo
,
attr
);
ITypeInfo_Release
(
refinfo
);
}
return
ret
;
}
static
unsigned
char
get_array_fc
(
ITypeInfo
*
typeinfo
,
TYPEDESC
*
desc
);
static
unsigned
char
get_struct_fc
(
ITypeInfo
*
typeinfo
,
TYPEATTR
*
attr
)
...
...
@@ -530,26 +553,10 @@ static HRESULT get_param_pointer_info(ITypeInfo *typeinfo, TYPEDESC *tdesc, int
break
;
case
VT_PTR
:
*
flags
|=
MustFree
;
if
(
tdesc
->
lptdesc
->
vt
==
VT_USERDEFINED
)
if
(
type_pointer_is_iface
(
typeinfo
,
tdesc
->
lptdesc
))
{
ITypeInfo_GetRefTypeInfo
(
typeinfo
,
tdesc
->
lptdesc
->
hreftype
,
&
refinfo
);
ITypeInfo_GetTypeAttr
(
refinfo
,
&
attr
);
switch
(
attr
->
typekind
)
{
case
TKIND_INTERFACE
:
case
TKIND_DISPATCH
:
case
TKIND_COCLASS
:
if
(
is_in
&&
is_out
)
*
server_size
=
sizeof
(
void
*
);
break
;
default:
if
(
is_in
&&
is_out
)
*
server_size
=
sizeof
(
void
*
);
}
ITypeInfo_ReleaseTypeAttr
(
refinfo
,
attr
);
ITypeInfo_Release
(
refinfo
);
}
else
*
server_size
=
sizeof
(
void
*
);
...
...
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