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
9318cb0f
Commit
9318cb0f
authored
Jul 17, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
Jul 18, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Handle more structure padding values.
parent
ad6b0dc2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
5 deletions
+41
-5
ndr_marshall.c
dlls/rpcrt4/ndr_marshall.c
+35
-5
rpcfc.h
include/wine/rpcfc.h
+6
-0
No files found.
dlls/rpcrt4/ndr_marshall.c
View file @
9318cb0f
...
...
@@ -1734,8 +1734,14 @@ static unsigned char * ComplexMarshall(PMIDL_STUB_MESSAGE pStubMsg,
case
RPC_FC_ALIGNM8
:
ALIGN_POINTER
(
pMemory
,
8
);
break
;
case
RPC_FC_STRUCTPAD1
:
case
RPC_FC_STRUCTPAD2
:
pMemory
+=
2
;
case
RPC_FC_STRUCTPAD3
:
case
RPC_FC_STRUCTPAD4
:
case
RPC_FC_STRUCTPAD5
:
case
RPC_FC_STRUCTPAD6
:
case
RPC_FC_STRUCTPAD7
:
pMemory
+=
*
pFormat
-
RPC_FC_STRUCTPAD1
+
1
;
break
;
case
RPC_FC_EMBEDDED_COMPLEX
:
pMemory
+=
pFormat
[
1
];
...
...
@@ -1808,8 +1814,14 @@ static unsigned char * ComplexUnmarshall(PMIDL_STUB_MESSAGE pStubMsg,
case
RPC_FC_ALIGNM8
:
ALIGN_POINTER
(
pMemory
,
8
);
break
;
case
RPC_FC_STRUCTPAD1
:
case
RPC_FC_STRUCTPAD2
:
pMemory
+=
2
;
case
RPC_FC_STRUCTPAD3
:
case
RPC_FC_STRUCTPAD4
:
case
RPC_FC_STRUCTPAD5
:
case
RPC_FC_STRUCTPAD6
:
case
RPC_FC_STRUCTPAD7
:
pMemory
+=
*
pFormat
-
RPC_FC_STRUCTPAD1
+
1
;
break
;
case
RPC_FC_EMBEDDED_COMPLEX
:
pMemory
+=
pFormat
[
1
];
...
...
@@ -1876,8 +1888,14 @@ static unsigned char * ComplexBufferSize(PMIDL_STUB_MESSAGE pStubMsg,
case
RPC_FC_ALIGNM8
:
ALIGN_POINTER
(
pMemory
,
8
);
break
;
case
RPC_FC_STRUCTPAD1
:
case
RPC_FC_STRUCTPAD2
:
pMemory
+=
2
;
case
RPC_FC_STRUCTPAD3
:
case
RPC_FC_STRUCTPAD4
:
case
RPC_FC_STRUCTPAD5
:
case
RPC_FC_STRUCTPAD6
:
case
RPC_FC_STRUCTPAD7
:
pMemory
+=
*
pFormat
-
RPC_FC_STRUCTPAD1
+
1
;
break
;
case
RPC_FC_EMBEDDED_COMPLEX
:
pMemory
+=
pFormat
[
1
];
...
...
@@ -1939,8 +1957,14 @@ static unsigned char * ComplexFree(PMIDL_STUB_MESSAGE pStubMsg,
case
RPC_FC_ALIGNM8
:
ALIGN_POINTER
(
pMemory
,
8
);
break
;
case
RPC_FC_STRUCTPAD1
:
case
RPC_FC_STRUCTPAD2
:
pMemory
+=
2
;
case
RPC_FC_STRUCTPAD3
:
case
RPC_FC_STRUCTPAD4
:
case
RPC_FC_STRUCTPAD5
:
case
RPC_FC_STRUCTPAD6
:
case
RPC_FC_STRUCTPAD7
:
pMemory
+=
*
pFormat
-
RPC_FC_STRUCTPAD1
+
1
;
break
;
case
RPC_FC_EMBEDDED_COMPLEX
:
pMemory
+=
pFormat
[
1
];
...
...
@@ -2003,8 +2027,14 @@ static unsigned long ComplexStructMemorySize(PMIDL_STUB_MESSAGE pStubMsg,
ALIGN_LENGTH
(
size
,
8
);
ALIGN_POINTER
(
pStubMsg
->
Buffer
,
8
);
break
;
case
RPC_FC_STRUCTPAD1
:
case
RPC_FC_STRUCTPAD2
:
size
+=
2
;
case
RPC_FC_STRUCTPAD3
:
case
RPC_FC_STRUCTPAD4
:
case
RPC_FC_STRUCTPAD5
:
case
RPC_FC_STRUCTPAD6
:
case
RPC_FC_STRUCTPAD7
:
size
+=
*
pFormat
-
RPC_FC_STRUCTPAD1
+
1
;
break
;
case
RPC_FC_EMBEDDED_COMPLEX
:
size
+=
pFormat
[
1
];
...
...
include/wine/rpcfc.h
View file @
9318cb0f
...
...
@@ -88,7 +88,13 @@
#define RPC_FC_ALIGNM4 0x38
#define RPC_FC_ALIGNM8 0x39
#define RPC_FC_STRUCTPAD1 0x3d
#define RPC_FC_STRUCTPAD2 0x3e
#define RPC_FC_STRUCTPAD3 0x3f
#define RPC_FC_STRUCTPAD4 0x40
#define RPC_FC_STRUCTPAD5 0x41
#define RPC_FC_STRUCTPAD6 0x42
#define RPC_FC_STRUCTPAD7 0x43
#define RPC_FC_STRING_SIZED 0x44
...
...
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