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
0f826e7c
Commit
0f826e7c
authored
Jun 19, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
Jun 20, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Use the offset to array data in embedded pointer format descriptions.
parent
4050c5f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
ndr_marshall.c
dlls/rpcrt4/ndr_marshall.c
+10
-9
No files found.
dlls/rpcrt4/ndr_marshall.c
View file @
0f826e7c
...
...
@@ -1137,10 +1137,10 @@ static unsigned char * EmbeddedPointerMarshall(PMIDL_STUB_MESSAGE pStubMsg,
}
for
(
i
=
0
;
i
<
rep
;
i
++
)
{
PFORMAT_STRING
info
=
pFormat
;
unsigned
char
*
membase
=
pMemory
+
(
i
*
stride
);
unsigned
char
*
bufbase
=
Mark
+
(
i
*
stride
);
unsigned
char
*
membase
=
pMemory
+
ofs
+
(
i
*
stride
);
unsigned
char
*
bufbase
=
Mark
+
ofs
+
(
i
*
stride
);
unsigned
u
;
/* ofs doesn't seem to matter in this context */
for
(
u
=
0
;
u
<
count
;
u
++
,
info
+=
8
)
{
unsigned
char
*
memptr
=
membase
+
*
(
const
SHORT
*
)
&
info
[
0
];
unsigned
char
*
bufptr
=
bufbase
+
*
(
const
SHORT
*
)
&
info
[
2
];
...
...
@@ -1210,9 +1210,10 @@ static unsigned char * EmbeddedPointerUnmarshall(PMIDL_STUB_MESSAGE pStubMsg,
/* ofs doesn't seem to matter in this context */
for
(
i
=
0
;
i
<
rep
;
i
++
)
{
PFORMAT_STRING
info
=
pFormat
;
unsigned
char
*
membase
=
*
ppMemory
+
(
i
*
stride
);
unsigned
char
*
bufbase
=
Mark
+
(
i
*
stride
);
unsigned
char
*
membase
=
*
ppMemory
+
ofs
+
(
i
*
stride
);
unsigned
char
*
bufbase
=
Mark
+
ofs
+
(
i
*
stride
);
unsigned
u
;
for
(
u
=
0
;
u
<
count
;
u
++
,
info
+=
8
)
{
unsigned
char
*
memptr
=
membase
+
*
(
const
SHORT
*
)
&
info
[
0
];
unsigned
char
*
bufptr
=
bufbase
+
*
(
const
SHORT
*
)
&
info
[
2
];
...
...
@@ -1272,11 +1273,11 @@ static void EmbeddedPointerBufferSize(PMIDL_STUB_MESSAGE pStubMsg,
pFormat
+=
8
;
break
;
}
/* ofs doesn't seem to matter in this context */
for
(
i
=
0
;
i
<
rep
;
i
++
)
{
PFORMAT_STRING
info
=
pFormat
;
unsigned
char
*
membase
=
pMemory
+
(
i
*
stride
);
unsigned
char
*
membase
=
pMemory
+
ofs
+
(
i
*
stride
);
unsigned
u
;
for
(
u
=
0
;
u
<
count
;
u
++
,
info
+=
8
)
{
unsigned
char
*
memptr
=
membase
+
*
(
const
SHORT
*
)
&
info
[
0
];
unsigned
char
*
saved_memory
=
pStubMsg
->
Memory
;
...
...
@@ -1338,7 +1339,7 @@ static unsigned long EmbeddedPointerMemorySize(PMIDL_STUB_MESSAGE pStubMsg,
/* ofs doesn't seem to matter in this context */
for
(
i
=
0
;
i
<
rep
;
i
++
)
{
PFORMAT_STRING
info
=
pFormat
;
unsigned
char
*
bufbase
=
Mark
+
(
i
*
stride
);
unsigned
char
*
bufbase
=
Mark
+
ofs
+
(
i
*
stride
);
unsigned
u
;
for
(
u
=
0
;
u
<
count
;
u
++
,
info
+=
8
)
{
unsigned
char
*
bufptr
=
bufbase
+
*
(
const
SHORT
*
)
&
info
[
2
];
...
...
@@ -1395,11 +1396,11 @@ static void EmbeddedPointerFree(PMIDL_STUB_MESSAGE pStubMsg,
pFormat
+=
8
;
break
;
}
/* ofs doesn't seem to matter in this context */
for
(
i
=
0
;
i
<
rep
;
i
++
)
{
PFORMAT_STRING
info
=
pFormat
;
unsigned
char
*
membase
=
pMemory
+
(
i
*
stride
);
unsigned
u
;
for
(
u
=
0
;
u
<
count
;
u
++
,
info
+=
8
)
{
unsigned
char
*
memptr
=
membase
+
*
(
const
SHORT
*
)
&
info
[
0
];
unsigned
char
*
saved_memory
=
pStubMsg
->
Memory
;
...
...
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