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
a07afe7e
Commit
a07afe7e
authored
Dec 09, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
Dec 10, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Implement NdrConformantArrayMemorySize.
parent
e3bd2d50
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
2 deletions
+27
-2
ndr_marshall.c
dlls/rpcrt4/ndr_marshall.c
+27
-2
No files found.
dlls/rpcrt4/ndr_marshall.c
View file @
a07afe7e
...
...
@@ -2859,8 +2859,33 @@ void WINAPI NdrConformantVaryingArrayBufferSize( PMIDL_STUB_MESSAGE pStubMsg,
ULONG
WINAPI
NdrConformantVaryingArrayMemorySize
(
PMIDL_STUB_MESSAGE
pStubMsg
,
PFORMAT_STRING
pFormat
)
{
FIXME
(
"stub
\n
"
);
return
0
;
ULONG
bufsize
,
memsize
;
unsigned
char
alignment
=
pFormat
[
1
]
+
1
;
DWORD
esize
=
*
(
const
WORD
*
)(
pFormat
+
2
);
TRACE
(
"(%p, %p)
\n
"
,
pStubMsg
,
pFormat
);
if
(
pFormat
[
0
]
!=
RPC_FC_CVARRAY
)
{
ERR
(
"invalid format type %x
\n
"
,
pFormat
[
0
]);
RpcRaiseException
(
RPC_S_INTERNAL_ERROR
);
return
pStubMsg
->
MemorySize
;
}
pFormat
=
ReadConformance
(
pStubMsg
,
pFormat
+
4
);
pFormat
=
ReadVariance
(
pStubMsg
,
pFormat
,
pStubMsg
->
MaxCount
);
ALIGN_POINTER
(
pStubMsg
->
Buffer
,
alignment
);
bufsize
=
safe_multiply
(
esize
,
pStubMsg
->
ActualCount
);
memsize
=
safe_multiply
(
esize
,
pStubMsg
->
MaxCount
);
safe_buffer_increment
(
pStubMsg
,
bufsize
);
pStubMsg
->
MemorySize
+=
memsize
;
EmbeddedPointerMemorySize
(
pStubMsg
,
pFormat
);
return
pStubMsg
->
MemorySize
;
}
...
...
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