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
21673d03
Commit
21673d03
authored
Jun 09, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
Jun 09, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Implement more base types for complex types.
parent
0b1e51ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
0 deletions
+43
-0
ndr_marshall.c
dlls/rpcrt4/ndr_marshall.c
+43
-0
No files found.
dlls/rpcrt4/ndr_marshall.c
View file @
21673d03
...
...
@@ -1642,6 +1642,16 @@ static unsigned char * ComplexMarshall(PMIDL_STUB_MESSAGE pStubMsg,
while
(
*
pFormat
!=
RPC_FC_END
)
{
switch
(
*
pFormat
)
{
case
RPC_FC_BYTE
:
case
RPC_FC_CHAR
:
case
RPC_FC_SMALL
:
case
RPC_FC_USMALL
:
TRACE
(
"byte=%d <= %p
\n
"
,
*
(
WORD
*
)
pMemory
,
pMemory
);
memcpy
(
pStubMsg
->
Buffer
,
pMemory
,
1
);
pStubMsg
->
Buffer
+=
1
;
pMemory
+=
1
;
break
;
case
RPC_FC_WCHAR
:
case
RPC_FC_SHORT
:
case
RPC_FC_USHORT
:
TRACE
(
"short=%d <= %p
\n
"
,
*
(
WORD
*
)
pMemory
,
pMemory
);
...
...
@@ -1706,6 +1716,16 @@ static unsigned char * ComplexUnmarshall(PMIDL_STUB_MESSAGE pStubMsg,
while
(
*
pFormat
!=
RPC_FC_END
)
{
switch
(
*
pFormat
)
{
case
RPC_FC_BYTE
:
case
RPC_FC_CHAR
:
case
RPC_FC_SMALL
:
case
RPC_FC_USMALL
:
memcpy
(
pMemory
,
pStubMsg
->
Buffer
,
1
);
TRACE
(
"byte=%d => %p
\n
"
,
*
(
WORD
*
)
pMemory
,
pMemory
);
pStubMsg
->
Buffer
+=
1
;
pMemory
+=
1
;
break
;
case
RPC_FC_WCHAR
:
case
RPC_FC_SHORT
:
case
RPC_FC_USHORT
:
memcpy
(
pMemory
,
pStubMsg
->
Buffer
,
2
);
...
...
@@ -1771,6 +1791,14 @@ static unsigned char * ComplexBufferSize(PMIDL_STUB_MESSAGE pStubMsg,
while
(
*
pFormat
!=
RPC_FC_END
)
{
switch
(
*
pFormat
)
{
case
RPC_FC_BYTE
:
case
RPC_FC_CHAR
:
case
RPC_FC_SMALL
:
case
RPC_FC_USMALL
:
pStubMsg
->
BufferLength
+=
1
;
pMemory
+=
1
;
break
;
case
RPC_FC_WCHAR
:
case
RPC_FC_SHORT
:
case
RPC_FC_USHORT
:
pStubMsg
->
BufferLength
+=
2
;
...
...
@@ -1829,6 +1857,13 @@ static unsigned char * ComplexFree(PMIDL_STUB_MESSAGE pStubMsg,
while
(
*
pFormat
!=
RPC_FC_END
)
{
switch
(
*
pFormat
)
{
case
RPC_FC_BYTE
:
case
RPC_FC_CHAR
:
case
RPC_FC_SMALL
:
case
RPC_FC_USMALL
:
pMemory
+=
1
;
break
;
case
RPC_FC_WCHAR
:
case
RPC_FC_SHORT
:
case
RPC_FC_USHORT
:
pMemory
+=
2
;
...
...
@@ -1882,6 +1917,14 @@ static unsigned long ComplexStructMemorySize(PMIDL_STUB_MESSAGE pStubMsg,
while
(
*
pFormat
!=
RPC_FC_END
)
{
switch
(
*
pFormat
)
{
case
RPC_FC_BYTE
:
case
RPC_FC_CHAR
:
case
RPC_FC_SMALL
:
case
RPC_FC_USMALL
:
size
+=
1
;
pStubMsg
->
Buffer
+=
1
;
break
;
case
RPC_FC_WCHAR
:
case
RPC_FC_SHORT
:
case
RPC_FC_USHORT
:
size
+=
2
;
...
...
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