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
4f6142b8
Commit
4f6142b8
authored
Jan 14, 2008
by
Rob Shearman
Committed by
Alexandre Julliard
Jan 14, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Handle complex arrays in calc_arg_size.
parent
aabfc525
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
ndr_marshall.c
dlls/rpcrt4/ndr_marshall.c
+1
-1
ndr_misc.h
dlls/rpcrt4/ndr_misc.h
+2
-0
ndr_stubless.c
dlls/rpcrt4/ndr_stubless.c
+6
-0
No files found.
dlls/rpcrt4/ndr_marshall.c
View file @
4f6142b8
...
...
@@ -2654,7 +2654,7 @@ static unsigned long ComplexStructMemorySize(PMIDL_STUB_MESSAGE pStubMsg,
return
size
;
}
static
unsigned
long
ComplexStructSize
(
PMIDL_STUB_MESSAGE
pStubMsg
,
unsigned
long
ComplexStructSize
(
PMIDL_STUB_MESSAGE
pStubMsg
,
PFORMAT_STRING
pFormat
)
{
PFORMAT_STRING
desc
;
...
...
dlls/rpcrt4/ndr_misc.h
View file @
4f6142b8
...
...
@@ -62,4 +62,6 @@ extern const NDR_BUFFERSIZE NdrBufferSizer[];
extern
const
NDR_MEMORYSIZE
NdrMemorySizer
[];
extern
const
NDR_FREE
NdrFreer
[];
unsigned
long
ComplexStructSize
(
PMIDL_STUB_MESSAGE
pStubMsg
,
PFORMAT_STRING
pFormat
);
#endif
/* __WINE_NDR_MISC_H */
dlls/rpcrt4/ndr_stubless.c
View file @
4f6142b8
...
...
@@ -849,6 +849,12 @@ static DWORD calc_arg_size(MIDL_STUB_MESSAGE *pStubMsg, PFORMAT_STRING pFormat)
case
RPC_FC_LGFARRAY
:
size
=
*
(
const
DWORD
*
)(
pFormat
+
2
);
break
;
case
RPC_FC_BOGUS_ARRAY
:
pFormat
=
ComputeConformance
(
pStubMsg
,
NULL
,
pFormat
+
4
,
*
(
const
WORD
*
)
&
pFormat
[
2
]);
TRACE
(
"conformance = %ld
\n
"
,
pStubMsg
->
MaxCount
);
pFormat
=
ComputeVariance
(
pStubMsg
,
NULL
,
pFormat
,
pStubMsg
->
MaxCount
);
size
=
ComplexStructSize
(
pStubMsg
,
pFormat
);
size
*=
pStubMsg
->
MaxCount
;
default
:
FIXME
(
"Unhandled type %02x
\n
"
,
*
pFormat
);
/* fallthrough */
...
...
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