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
517844e0
Commit
517844e0
authored
Jul 03, 2008
by
Rob Shearman
Committed by
Alexandre Julliard
Jul 04, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Support calculating the size in memory of range types embedded in complex types.
parent
798afcf9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
11 deletions
+41
-11
ndr_marshall.c
dlls/rpcrt4/ndr_marshall.c
+41
-11
No files found.
dlls/rpcrt4/ndr_marshall.c
View file @
517844e0
...
...
@@ -2114,7 +2114,17 @@ void WINAPI NdrSimpleStructFree(PMIDL_STUB_MESSAGE pStubMsg,
}
static
unsigned
long
EmbeddedComplexSize
(
const
MIDL_STUB_MESSAGE
*
pStubMsg
,
#include "pshpack1.h"
typedef
struct
{
unsigned
char
type
;
unsigned
char
flags_type
;
/* flags in upper nibble, type in lower nibble */
ULONG
low_value
;
ULONG
high_value
;
}
NDR_RANGE
;
#include "poppack.h"
static
unsigned
long
EmbeddedComplexSize
(
MIDL_STUB_MESSAGE
*
pStubMsg
,
PFORMAT_STRING
pFormat
)
{
switch
(
*
pFormat
)
{
...
...
@@ -2128,6 +2138,36 @@ static unsigned long EmbeddedComplexSize(const MIDL_STUB_MESSAGE *pStubMsg,
return
*
(
const
WORD
*
)
&
pFormat
[
2
];
case
RPC_FC_USER_MARSHAL
:
return
*
(
const
WORD
*
)
&
pFormat
[
4
];
case
RPC_FC_RANGE
:
{
switch
(((
const
NDR_RANGE
*
)
pFormat
)
->
flags_type
&
0xf
)
{
case
RPC_FC_BYTE
:
case
RPC_FC_CHAR
:
case
RPC_FC_SMALL
:
case
RPC_FC_USMALL
:
return
sizeof
(
UCHAR
);
case
RPC_FC_WCHAR
:
case
RPC_FC_SHORT
:
case
RPC_FC_USHORT
:
return
sizeof
(
USHORT
);
case
RPC_FC_LONG
:
case
RPC_FC_ULONG
:
case
RPC_FC_ENUM32
:
return
sizeof
(
ULONG
);
case
RPC_FC_FLOAT
:
return
sizeof
(
float
);
case
RPC_FC_DOUBLE
:
return
sizeof
(
double
);
case
RPC_FC_HYPER
:
return
sizeof
(
ULONGLONG
);
case
RPC_FC_ERROR_STATUS_T
:
return
sizeof
(
error_status_t
);
case
RPC_FC_ENUM16
:
return
sizeof
(
UINT
);
default:
ERR
(
"unknown type 0x%x
\n
"
,
((
const
NDR_RANGE
*
)
pFormat
)
->
flags_type
&
0xf
);
RpcRaiseException
(
RPC_X_BAD_STUB_DATA
);
}
}
case
RPC_FC_NON_ENCAPSULATED_UNION
:
pFormat
+=
2
;
if
(
pStubMsg
->
fHasNewCorrDesc
)
...
...
@@ -5710,16 +5750,6 @@ void WINAPI NdrXmitOrRepAsFree(PMIDL_STUB_MESSAGE pStubMsg,
FIXME
(
"stub
\n
"
);
}
#include "pshpack1.h"
typedef
struct
{
unsigned
char
type
;
unsigned
char
flags_type
;
/* flags in upper nibble, type in lower nibble */
ULONG
low_value
;
ULONG
high_value
;
}
NDR_RANGE
;
#include "poppack.h"
/***********************************************************************
* NdrRangeMarshall [internal]
*/
...
...
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