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
629a29d8
Commit
629a29d8
authored
Mar 20, 2008
by
Dan Hipschman
Committed by
Alexandre Julliard
Mar 21, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Handle FC_ENUM16.
parent
01316db0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
ndr_marshall.c
dlls/rpcrt4/ndr_marshall.c
+25
-0
No files found.
dlls/rpcrt4/ndr_marshall.c
View file @
629a29d8
...
...
@@ -2190,6 +2190,13 @@ static unsigned char * ComplexMarshall(PMIDL_STUB_MESSAGE pStubMsg,
safe_copy_to_buffer
(
pStubMsg
,
pMemory
,
2
);
pMemory
+=
2
;
break
;
case
RPC_FC_ENUM16
:
TRACE
(
"enum16=%d <= %p
\n
"
,
*
(
DWORD
*
)
pMemory
,
pMemory
);
if
(
32767
<
*
(
DWORD
*
)
pMemory
)
RpcRaiseException
(
RPC_X_ENUM_VALUE_OUT_OF_RANGE
);
safe_copy_to_buffer
(
pStubMsg
,
pMemory
,
2
);
pMemory
+=
4
;
break
;
case
RPC_FC_LONG
:
case
RPC_FC_ULONG
:
case
RPC_FC_ENUM32
:
...
...
@@ -2308,6 +2315,14 @@ static unsigned char * ComplexUnmarshall(PMIDL_STUB_MESSAGE pStubMsg,
TRACE
(
"short=%d => %p
\n
"
,
*
(
WORD
*
)
pMemory
,
pMemory
);
pMemory
+=
2
;
break
;
case
RPC_FC_ENUM16
:
safe_copy_from_buffer
(
pStubMsg
,
pMemory
,
2
);
*
(
DWORD
*
)
pMemory
&=
0xffff
;
TRACE
(
"enum16=%d => %p
\n
"
,
*
(
DWORD
*
)
pMemory
,
pMemory
);
if
(
32767
<
*
(
DWORD
*
)
pMemory
)
RpcRaiseException
(
RPC_X_ENUM_VALUE_OUT_OF_RANGE
);
pMemory
+=
4
;
break
;
case
RPC_FC_LONG
:
case
RPC_FC_ULONG
:
case
RPC_FC_ENUM32
:
...
...
@@ -2427,6 +2442,10 @@ static unsigned char * ComplexBufferSize(PMIDL_STUB_MESSAGE pStubMsg,
safe_buffer_length_increment
(
pStubMsg
,
2
);
pMemory
+=
2
;
break
;
case
RPC_FC_ENUM16
:
safe_buffer_length_increment
(
pStubMsg
,
2
);
pMemory
+=
4
;
break
;
case
RPC_FC_LONG
:
case
RPC_FC_ULONG
:
case
RPC_FC_ENUM32
:
...
...
@@ -2524,6 +2543,7 @@ static unsigned char * ComplexFree(PMIDL_STUB_MESSAGE pStubMsg,
break
;
case
RPC_FC_LONG
:
case
RPC_FC_ULONG
:
case
RPC_FC_ENUM16
:
case
RPC_FC_ENUM32
:
pMemory
+=
4
;
break
;
...
...
@@ -2602,6 +2622,10 @@ static unsigned long ComplexStructMemorySize(PMIDL_STUB_MESSAGE pStubMsg,
size
+=
2
;
safe_buffer_increment
(
pStubMsg
,
2
);
break
;
case
RPC_FC_ENUM16
:
size
+=
4
;
safe_buffer_increment
(
pStubMsg
,
2
);
break
;
case
RPC_FC_LONG
:
case
RPC_FC_ULONG
:
case
RPC_FC_ENUM32
:
...
...
@@ -2674,6 +2698,7 @@ unsigned long ComplexStructSize(PMIDL_STUB_MESSAGE pStubMsg,
break
;
case
RPC_FC_LONG
:
case
RPC_FC_ULONG
:
case
RPC_FC_ENUM16
:
case
RPC_FC_ENUM32
:
size
+=
4
;
break
;
...
...
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