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
23981241
Commit
23981241
authored
Sep 18, 2014
by
Eric Kohl
Committed by
Alexandre Julliard
Sep 18, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Fix buffer size calculation for arrays with embedded pointers.
parent
57f1d448
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ndr_marshall.c
dlls/rpcrt4/ndr_marshall.c
+3
-3
No files found.
dlls/rpcrt4/ndr_marshall.c
View file @
23981241
...
...
@@ -1211,7 +1211,7 @@ static unsigned char * EmbeddedPointerMarshall(PMIDL_STUB_MESSAGE pStubMsg,
unsigned
char
*
bufptr
=
bufbase
+
*
(
const
SHORT
*
)
&
info
[
2
];
unsigned
char
*
saved_memory
=
pStubMsg
->
Memory
;
pStubMsg
->
Memory
=
pMemory
;
pStubMsg
->
Memory
=
membase
;
PointerMarshall
(
pStubMsg
,
bufptr
,
*
(
unsigned
char
**
)
memptr
,
info
+
4
);
pStubMsg
->
Memory
=
saved_memory
;
}
...
...
@@ -1365,7 +1365,7 @@ static void EmbeddedPointerBufferSize(PMIDL_STUB_MESSAGE pStubMsg,
unsigned
char
*
memptr
=
membase
+
*
(
const
SHORT
*
)
&
info
[
0
];
unsigned
char
*
saved_memory
=
pStubMsg
->
Memory
;
pStubMsg
->
Memory
=
pMemory
;
pStubMsg
->
Memory
=
membase
;
PointerBufferSize
(
pStubMsg
,
*
(
unsigned
char
**
)
memptr
,
info
+
4
);
pStubMsg
->
Memory
=
saved_memory
;
}
...
...
@@ -1497,7 +1497,7 @@ static void EmbeddedPointerFree(PMIDL_STUB_MESSAGE pStubMsg,
unsigned
char
*
memptr
=
membase
+
*
(
const
SHORT
*
)
&
info
[
0
];
unsigned
char
*
saved_memory
=
pStubMsg
->
Memory
;
pStubMsg
->
Memory
=
pMemory
;
pStubMsg
->
Memory
=
membase
;
PointerFree
(
pStubMsg
,
*
(
unsigned
char
**
)
memptr
,
info
+
4
);
pStubMsg
->
Memory
=
saved_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