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
4d25edc2
Commit
4d25edc2
authored
Feb 03, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
Feb 03, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Restrict stubless FC types to the range of the type function table.
parent
666baea1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
ndr_stubless.c
dlls/rpcrt4/ndr_stubless.c
+7
-5
No files found.
dlls/rpcrt4/ndr_stubless.c
View file @
4d25edc2
...
...
@@ -47,9 +47,11 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
rpc
);
#define NDR_TABLE_MASK 127
static
inline
void
call_buffer_sizer
(
PMIDL_STUB_MESSAGE
pStubMsg
,
unsigned
char
*
pMemory
,
PFORMAT_STRING
pFormat
)
{
NDR_BUFFERSIZE
m
=
NdrBufferSizer
[
pFormat
[
0
]];
NDR_BUFFERSIZE
m
=
NdrBufferSizer
[
pFormat
[
0
]
&
NDR_TABLE_MASK
];
if
(
m
)
m
(
pStubMsg
,
pMemory
,
pFormat
);
else
{
...
...
@@ -60,7 +62,7 @@ static inline void call_buffer_sizer(PMIDL_STUB_MESSAGE pStubMsg, unsigned char
static
inline
unsigned
char
*
call_marshaller
(
PMIDL_STUB_MESSAGE
pStubMsg
,
unsigned
char
*
pMemory
,
PFORMAT_STRING
pFormat
)
{
NDR_MARSHALL
m
=
NdrMarshaller
[
pFormat
[
0
]];
NDR_MARSHALL
m
=
NdrMarshaller
[
pFormat
[
0
]
&
NDR_TABLE_MASK
];
if
(
m
)
return
m
(
pStubMsg
,
pMemory
,
pFormat
);
else
{
...
...
@@ -72,7 +74,7 @@ static inline unsigned char *call_marshaller(PMIDL_STUB_MESSAGE pStubMsg, unsign
static
inline
unsigned
char
*
call_unmarshaller
(
PMIDL_STUB_MESSAGE
pStubMsg
,
unsigned
char
**
ppMemory
,
PFORMAT_STRING
pFormat
,
unsigned
char
fMustAlloc
)
{
NDR_UNMARSHALL
m
=
NdrUnmarshaller
[
pFormat
[
0
]];
NDR_UNMARSHALL
m
=
NdrUnmarshaller
[
pFormat
[
0
]
&
NDR_TABLE_MASK
];
if
(
m
)
return
m
(
pStubMsg
,
ppMemory
,
pFormat
,
fMustAlloc
);
else
{
...
...
@@ -84,7 +86,7 @@ static inline unsigned char *call_unmarshaller(PMIDL_STUB_MESSAGE pStubMsg, unsi
static
inline
void
call_freer
(
PMIDL_STUB_MESSAGE
pStubMsg
,
unsigned
char
*
pMemory
,
PFORMAT_STRING
pFormat
)
{
NDR_FREE
m
=
NdrFreer
[
pFormat
[
0
]];
NDR_FREE
m
=
NdrFreer
[
pFormat
[
0
]
&
NDR_TABLE_MASK
];
if
(
m
)
m
(
pStubMsg
,
pMemory
,
pFormat
);
else
{
...
...
@@ -95,7 +97,7 @@ static inline void call_freer(PMIDL_STUB_MESSAGE pStubMsg, unsigned char *pMemor
static
inline
unsigned
long
call_memory_sizer
(
PMIDL_STUB_MESSAGE
pStubMsg
,
PFORMAT_STRING
pFormat
)
{
NDR_MEMORYSIZE
m
=
NdrMemorySizer
[
pFormat
[
0
]];
NDR_MEMORYSIZE
m
=
NdrMemorySizer
[
pFormat
[
0
]
&
NDR_TABLE_MASK
];
if
(
m
)
return
m
(
pStubMsg
,
pFormat
);
else
{
...
...
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