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
98c26a81
Commit
98c26a81
authored
Jul 24, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
Jul 24, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Add support for marshaling the FC_HYPER base type in complex types.
Change the FIXME messages to print out unrecognised format characters in hex rather than decimal.
parent
2334e18a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
4 deletions
+27
-4
ndr_marshall.c
dlls/rpcrt4/ndr_marshall.c
+27
-4
No files found.
dlls/rpcrt4/ndr_marshall.c
View file @
98c26a81
...
...
@@ -1722,6 +1722,12 @@ static unsigned char * ComplexMarshall(PMIDL_STUB_MESSAGE pStubMsg,
pStubMsg
->
Buffer
+=
4
;
pMemory
+=
4
;
break
;
case
RPC_FC_HYPER
:
TRACE
(
"longlong=%s <= %p
\n
"
,
wine_dbgstr_longlong
(
*
(
ULONGLONG
*
)
pMemory
),
pMemory
);
memcpy
(
pStubMsg
->
Buffer
,
pMemory
,
8
);
pStubMsg
->
Buffer
+=
8
;
pMemory
+=
8
;
break
;
case
RPC_FC_POINTER
:
TRACE
(
"pointer=%p <= %p
\n
"
,
*
(
unsigned
char
**
)
pMemory
,
pMemory
);
NdrPointerMarshall
(
pStubMsg
,
*
(
unsigned
char
**
)
pMemory
,
pPointer
);
...
...
@@ -1758,7 +1764,7 @@ static unsigned char * ComplexMarshall(PMIDL_STUB_MESSAGE pStubMsg,
case
RPC_FC_PAD
:
break
;
default:
FIXME
(
"unhandled format %02x
\n
"
,
*
pFormat
);
FIXME
(
"unhandled format
0x
%02x
\n
"
,
*
pFormat
);
}
pFormat
++
;
}
...
...
@@ -1802,6 +1808,12 @@ static unsigned char * ComplexUnmarshall(PMIDL_STUB_MESSAGE pStubMsg,
pStubMsg
->
Buffer
+=
4
;
pMemory
+=
4
;
break
;
case
RPC_FC_HYPER
:
memcpy
(
pMemory
,
pStubMsg
->
Buffer
,
8
);
TRACE
(
"longlong=%s => %p
\n
"
,
wine_dbgstr_longlong
(
*
(
ULONGLONG
*
)
pMemory
),
pMemory
);
pStubMsg
->
Buffer
+=
8
;
pMemory
+=
8
;
break
;
case
RPC_FC_POINTER
:
TRACE
(
"pointer => %p
\n
"
,
pMemory
);
NdrPointerUnmarshall
(
pStubMsg
,
(
unsigned
char
**
)
pMemory
,
pPointer
,
TRUE
);
...
...
@@ -1877,6 +1889,10 @@ static unsigned char * ComplexBufferSize(PMIDL_STUB_MESSAGE pStubMsg,
pStubMsg
->
BufferLength
+=
4
;
pMemory
+=
4
;
break
;
case
RPC_FC_HYPER
:
pStubMsg
->
BufferLength
+=
8
;
pMemory
+=
8
;
break
;
case
RPC_FC_POINTER
:
NdrPointerBufferSize
(
pStubMsg
,
*
(
unsigned
char
**
)
pMemory
,
pPointer
);
pPointer
+=
4
;
...
...
@@ -1911,7 +1927,7 @@ static unsigned char * ComplexBufferSize(PMIDL_STUB_MESSAGE pStubMsg,
case
RPC_FC_PAD
:
break
;
default:
FIXME
(
"unhandled format
%d
\n
"
,
*
pFormat
);
FIXME
(
"unhandled format
0x%02x
\n
"
,
*
pFormat
);
}
pFormat
++
;
}
...
...
@@ -1946,6 +1962,9 @@ static unsigned char * ComplexFree(PMIDL_STUB_MESSAGE pStubMsg,
case
RPC_FC_ENUM32
:
pMemory
+=
4
;
break
;
case
RPC_FC_HYPER
:
pMemory
+=
8
;
break
;
case
RPC_FC_POINTER
:
NdrPointerFree
(
pStubMsg
,
*
(
unsigned
char
**
)
pMemory
,
pPointer
);
pPointer
+=
4
;
...
...
@@ -1980,7 +1999,7 @@ static unsigned char * ComplexFree(PMIDL_STUB_MESSAGE pStubMsg,
case
RPC_FC_PAD
:
break
;
default:
FIXME
(
"unhandled format
%d
\n
"
,
*
pFormat
);
FIXME
(
"unhandled format
0x%02x
\n
"
,
*
pFormat
);
}
pFormat
++
;
}
...
...
@@ -2015,6 +2034,10 @@ static unsigned long ComplexStructMemorySize(PMIDL_STUB_MESSAGE pStubMsg,
size
+=
4
;
pStubMsg
->
Buffer
+=
4
;
break
;
case
RPC_FC_HYPER
:
size
+=
8
;
pStubMsg
->
Buffer
+=
8
;
break
;
case
RPC_FC_POINTER
:
size
+=
4
;
pStubMsg
->
Buffer
+=
4
;
...
...
@@ -2046,7 +2069,7 @@ static unsigned long ComplexStructMemorySize(PMIDL_STUB_MESSAGE pStubMsg,
case
RPC_FC_PAD
:
break
;
default:
FIXME
(
"unhandled format
%d
\n
"
,
*
pFormat
);
FIXME
(
"unhandled format
0x%02x
\n
"
,
*
pFormat
);
}
pFormat
++
;
}
...
...
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