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
ec2a9cef
Commit
ec2a9cef
authored
May 24, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
May 25, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Set the Memory field of the stub message structure to the
start of the memory that an embedded pointer is embedded in so that FC_POINTER conformance works correctly.
parent
4e852730
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
ndr_marshall.c
dlls/rpcrt4/ndr_marshall.c
+12
-0
No files found.
dlls/rpcrt4/ndr_marshall.c
View file @
ec2a9cef
...
...
@@ -1041,7 +1041,11 @@ static unsigned char * EmbeddedPointerMarshall(PMIDL_STUB_MESSAGE pStubMsg,
for
(
u
=
0
;
u
<
count
;
u
++
,
info
+=
8
)
{
unsigned
char
*
memptr
=
membase
+
*
(
const
SHORT
*
)
&
info
[
0
];
unsigned
char
*
bufptr
=
bufbase
+
*
(
const
SHORT
*
)
&
info
[
2
];
unsigned
char
*
saved_memory
=
pStubMsg
->
Memory
;
pStubMsg
->
Memory
=
pMemory
;
PointerMarshall
(
pStubMsg
,
bufptr
,
*
(
unsigned
char
**
)
memptr
,
info
+
4
);
pStubMsg
->
Memory
=
saved_memory
;
}
}
pFormat
+=
8
*
count
;
...
...
@@ -1172,7 +1176,11 @@ static void EmbeddedPointerBufferSize(PMIDL_STUB_MESSAGE pStubMsg,
unsigned
u
;
for
(
u
=
0
;
u
<
count
;
u
++
,
info
+=
8
)
{
unsigned
char
*
memptr
=
membase
+
*
(
const
SHORT
*
)
&
info
[
0
];
unsigned
char
*
saved_memory
=
pStubMsg
->
Memory
;
pStubMsg
->
Memory
=
pMemory
;
PointerBufferSize
(
pStubMsg
,
*
(
unsigned
char
**
)
memptr
,
info
+
4
);
pStubMsg
->
Memory
=
saved_memory
;
}
}
pFormat
+=
8
*
count
;
...
...
@@ -1291,7 +1299,11 @@ static void EmbeddedPointerFree(PMIDL_STUB_MESSAGE pStubMsg,
unsigned
u
;
for
(
u
=
0
;
u
<
count
;
u
++
,
info
+=
8
)
{
unsigned
char
*
memptr
=
membase
+
*
(
const
SHORT
*
)
&
info
[
0
];
unsigned
char
*
saved_memory
=
pStubMsg
->
Memory
;
pStubMsg
->
Memory
=
pMemory
;
PointerFree
(
pStubMsg
,
*
(
unsigned
char
**
)
memptr
,
info
+
4
);
pStubMsg
->
Memory
=
saved_memory
;
}
}
pFormat
+=
8
*
count
;
...
...
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