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
46e51ef7
Commit
46e51ef7
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: Write parameters for fixed structs.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
583dca9d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
1 deletion
+30
-1
ndr_typelib.c
dlls/rpcrt4/ndr_typelib.c
+30
-1
No files found.
dlls/rpcrt4/ndr_typelib.c
View file @
46e51ef7
...
...
@@ -246,6 +246,7 @@ static unsigned char get_struct_member_fc(ITypeInfo *typeinfo, TYPEDESC *tdesc)
return
(
sizeof
(
void
*
)
==
4
)
?
FC_PSTRUCT
:
FC_BOGUS_STRUCT
;
case
VT_CY
:
return
FC_STRUCT
;
case
VT_VARIANT
:
case
VT_UNKNOWN
:
case
VT_DISPATCH
:
return
FC_BOGUS_STRUCT
;
...
...
@@ -358,7 +359,12 @@ static size_t write_struct_tfs(ITypeInfo *typeinfo, unsigned char *str,
size_t
*
len
,
TYPEATTR
*
attr
)
{
unsigned
char
fc
=
get_struct_fc
(
typeinfo
,
attr
);
unsigned
int
struct_offset
=
0
;
unsigned
char
basetype
;
size_t
off
=
*
len
;
TYPEDESC
*
tdesc
;
VARDESC
*
desc
;
WORD
i
;
if
(
fc
!=
FC_STRUCT
)
FIXME
(
"fc %02x not implemented
\n
"
,
fc
);
...
...
@@ -366,7 +372,30 @@ static size_t write_struct_tfs(ITypeInfo *typeinfo, unsigned char *str,
WRITE_CHAR
(
str
,
*
len
,
FC_STRUCT
);
WRITE_CHAR
(
str
,
*
len
,
attr
->
cbAlignment
-
1
);
WRITE_SHORT
(
str
,
*
len
,
attr
->
cbSizeInstance
);
WRITE_CHAR
(
str
,
*
len
,
FC_PAD
);
for
(
i
=
0
;
i
<
attr
->
cVars
;
i
++
)
{
ITypeInfo_GetVarDesc
(
typeinfo
,
i
,
&
desc
);
tdesc
=
&
desc
->
elemdescVar
.
tdesc
;
/* This may not match the intended alignment, but we don't have enough
* information to determine that. This should always give the correct
* layout. */
if
((
struct_offset
&
7
)
&&
!
(
desc
->
oInst
&
7
))
WRITE_CHAR
(
str
,
*
len
,
FC_ALIGNM8
);
else
if
((
struct_offset
&
3
)
&&
!
(
desc
->
oInst
&
3
))
WRITE_CHAR
(
str
,
*
len
,
FC_ALIGNM4
);
else
if
((
struct_offset
&
1
)
&&
!
(
desc
->
oInst
&
1
))
WRITE_CHAR
(
str
,
*
len
,
FC_ALIGNM2
);
struct_offset
=
desc
->
oInst
+
type_memsize
(
typeinfo
,
tdesc
);
if
((
basetype
=
get_basetype
(
typeinfo
,
tdesc
)))
WRITE_CHAR
(
str
,
*
len
,
basetype
);
ITypeInfo_ReleaseVarDesc
(
typeinfo
,
desc
);
}
if
(
!
(
*
len
&
1
))
WRITE_CHAR
(
str
,
*
len
,
FC_PAD
);
WRITE_CHAR
(
str
,
*
len
,
FC_END
);
return
off
;
...
...
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