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
87b712be
Commit
87b712be
authored
Feb 22, 2010
by
Huw Davies
Committed by
Alexandre Julliard
Feb 22, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Add support for FC_FLOAT and FC_DOUBLE in complex structures.
parent
9b442134
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
ndr_marshall.c
dlls/rpcrt4/ndr_marshall.c
+28
-0
No files found.
dlls/rpcrt4/ndr_marshall.c
View file @
87b712be
...
...
@@ -2696,11 +2696,21 @@ static unsigned char * ComplexMarshall(PMIDL_STUB_MESSAGE pStubMsg,
safe_copy_to_buffer
(
pStubMsg
,
pMemory
,
4
);
pMemory
+=
4
;
break
;
case
RPC_FC_FLOAT
:
TRACE
(
"float=%f <= %p
\n
"
,
*
(
float
*
)
pMemory
,
pMemory
);
safe_copy_to_buffer
(
pStubMsg
,
pMemory
,
sizeof
(
float
));
pMemory
+=
sizeof
(
float
);
break
;
case
RPC_FC_HYPER
:
TRACE
(
"longlong=%s <= %p
\n
"
,
wine_dbgstr_longlong
(
*
(
ULONGLONG
*
)
pMemory
),
pMemory
);
safe_copy_to_buffer
(
pStubMsg
,
pMemory
,
8
);
pMemory
+=
8
;
break
;
case
RPC_FC_DOUBLE
:
TRACE
(
"double=%f <= %p
\n
"
,
*
(
double
*
)
pMemory
,
pMemory
);
safe_copy_to_buffer
(
pStubMsg
,
pMemory
,
sizeof
(
double
));
pMemory
+=
sizeof
(
double
);
break
;
case
RPC_FC_POINTER
:
{
unsigned
char
*
saved_buffer
;
...
...
@@ -2825,11 +2835,21 @@ static unsigned char * ComplexUnmarshall(PMIDL_STUB_MESSAGE pStubMsg,
TRACE
(
"long=%d => %p
\n
"
,
*
(
DWORD
*
)
pMemory
,
pMemory
);
pMemory
+=
4
;
break
;
case
RPC_FC_FLOAT
:
safe_copy_from_buffer
(
pStubMsg
,
pMemory
,
sizeof
(
float
));
TRACE
(
"float=%f => %p
\n
"
,
*
(
float
*
)
pMemory
,
pMemory
);
pMemory
+=
sizeof
(
float
);
break
;
case
RPC_FC_HYPER
:
safe_copy_from_buffer
(
pStubMsg
,
pMemory
,
8
);
TRACE
(
"longlong=%s => %p
\n
"
,
wine_dbgstr_longlong
(
*
(
ULONGLONG
*
)
pMemory
),
pMemory
);
pMemory
+=
8
;
break
;
case
RPC_FC_DOUBLE
:
safe_copy_from_buffer
(
pStubMsg
,
pMemory
,
sizeof
(
double
));
TRACE
(
"double=%f => %p
\n
"
,
*
(
double
*
)
pMemory
,
pMemory
);
pMemory
+=
sizeof
(
double
);
break
;
case
RPC_FC_POINTER
:
{
unsigned
char
*
saved_buffer
;
...
...
@@ -2950,10 +2970,12 @@ static unsigned char * ComplexBufferSize(PMIDL_STUB_MESSAGE pStubMsg,
case
RPC_FC_LONG
:
case
RPC_FC_ULONG
:
case
RPC_FC_ENUM32
:
case
RPC_FC_FLOAT
:
safe_buffer_length_increment
(
pStubMsg
,
4
);
pMemory
+=
4
;
break
;
case
RPC_FC_HYPER
:
case
RPC_FC_DOUBLE
:
safe_buffer_length_increment
(
pStubMsg
,
8
);
pMemory
+=
8
;
break
;
...
...
@@ -3053,9 +3075,11 @@ static unsigned char * ComplexFree(PMIDL_STUB_MESSAGE pStubMsg,
case
RPC_FC_ULONG
:
case
RPC_FC_ENUM16
:
case
RPC_FC_ENUM32
:
case
RPC_FC_FLOAT
:
pMemory
+=
4
;
break
;
case
RPC_FC_HYPER
:
case
RPC_FC_DOUBLE
:
pMemory
+=
8
;
break
;
case
RPC_FC_POINTER
:
...
...
@@ -3141,10 +3165,12 @@ static ULONG ComplexStructMemorySize(PMIDL_STUB_MESSAGE pStubMsg,
case
RPC_FC_LONG
:
case
RPC_FC_ULONG
:
case
RPC_FC_ENUM32
:
case
RPC_FC_FLOAT
:
size
+=
4
;
safe_buffer_increment
(
pStubMsg
,
4
);
break
;
case
RPC_FC_HYPER
:
case
RPC_FC_DOUBLE
:
size
+=
8
;
safe_buffer_increment
(
pStubMsg
,
8
);
break
;
...
...
@@ -3236,9 +3262,11 @@ ULONG ComplexStructSize(PMIDL_STUB_MESSAGE pStubMsg, PFORMAT_STRING pFormat)
case
RPC_FC_ULONG
:
case
RPC_FC_ENUM16
:
case
RPC_FC_ENUM32
:
case
RPC_FC_FLOAT
:
size
+=
4
;
break
;
case
RPC_FC_HYPER
:
case
RPC_FC_DOUBLE
:
size
+=
8
;
break
;
case
RPC_FC_POINTER
:
...
...
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