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
88bbbed1
Commit
88bbbed1
authored
Aug 09, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
Aug 09, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Change call_memory_sizer to preserve the buffer contents and
initialise the memory size field to zero before calling the memory sizer function.
parent
d29108c3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
ndr_stubless.c
dlls/rpcrt4/ndr_stubless.c
+12
-1
No files found.
dlls/rpcrt4/ndr_stubless.c
View file @
88bbbed1
...
...
@@ -94,7 +94,18 @@ static inline void call_freer(PMIDL_STUB_MESSAGE pStubMsg, unsigned char *pMemor
static
inline
unsigned
long
call_memory_sizer
(
PMIDL_STUB_MESSAGE
pStubMsg
,
PFORMAT_STRING
pFormat
)
{
NDR_MEMORYSIZE
m
=
NdrMemorySizer
[
pFormat
[
0
]
&
NDR_TABLE_MASK
];
if
(
m
)
return
m
(
pStubMsg
,
pFormat
);
if
(
m
)
{
unsigned
char
*
saved_buffer
=
pStubMsg
->
Buffer
;
unsigned
long
ret
;
int
saved_ignore_embedded_pointers
=
pStubMsg
->
IgnoreEmbeddedPointers
;
pStubMsg
->
MemorySize
=
0
;
pStubMsg
->
IgnoreEmbeddedPointers
=
1
;
ret
=
m
(
pStubMsg
,
pFormat
);
pStubMsg
->
IgnoreEmbeddedPointers
=
saved_ignore_embedded_pointers
;
pStubMsg
->
Buffer
=
saved_buffer
;
return
ret
;
}
else
{
FIXME
(
"format type 0x%x not implemented
\n
"
,
pFormat
[
0
]);
...
...
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