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
4d65110b
Commit
4d65110b
authored
May 13, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
May 15, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Make NdrConformantStringUnmarshall use the new Read{Variance,Conformance}
functions and adapt them to be callable without having a correlation descriptor.
parent
a33a6371
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
ndr_marshall.c
dlls/rpcrt4/ndr_marshall.c
+6
-7
No files found.
dlls/rpcrt4/ndr_marshall.c
View file @
4d65110b
...
...
@@ -320,7 +320,7 @@ PFORMAT_STRING ReadConformance(MIDL_STUB_MESSAGE *pStubMsg, PFORMAT_STRING pForm
static
inline
PFORMAT_STRING
ReadVariance
(
MIDL_STUB_MESSAGE
*
pStubMsg
,
PFORMAT_STRING
pFormat
)
{
if
(
!
IsConformanceOrVariancePresent
(
pFormat
))
if
(
pFormat
&&
!
IsConformanceOrVariancePresent
(
pFormat
))
{
pStubMsg
->
Offset
=
0
;
pStubMsg
->
ActualCount
=
pStubMsg
->
MaxCount
;
...
...
@@ -626,18 +626,15 @@ unsigned long WINAPI NdrConformantStringMemorySize( PMIDL_STUB_MESSAGE pStubMsg,
unsigned
char
*
WINAPI
NdrConformantStringUnmarshall
(
PMIDL_STUB_MESSAGE
pStubMsg
,
unsigned
char
**
ppMemory
,
PFORMAT_STRING
pFormat
,
unsigned
char
fMustAlloc
)
{
unsigned
long
len
,
esize
,
ofs
;
unsigned
long
len
,
esize
;
TRACE
(
"(pStubMsg == ^%p, *pMemory == ^%p, pFormat == ^%p, fMustAlloc == %u)
\n
"
,
pStubMsg
,
*
ppMemory
,
pFormat
,
fMustAlloc
);
assert
(
pFormat
&&
ppMemory
&&
pStubMsg
);
pStubMsg
->
Buffer
+=
4
;
ofs
=
NDR_LOCAL_UINT32_READ
(
pStubMsg
->
Buffer
);
pStubMsg
->
Buffer
+=
4
;
len
=
NDR_LOCAL_UINT32_READ
(
pStubMsg
->
Buffer
);
pStubMsg
->
Buffer
+=
4
;
ReadConformance
(
pStubMsg
,
NULL
);
ReadVariance
(
pStubMsg
,
NULL
);
if
(
*
pFormat
==
RPC_FC_C_CSTRING
)
esize
=
1
;
else
if
(
*
pFormat
==
RPC_FC_C_WSTRING
)
esize
=
2
;
...
...
@@ -651,6 +648,8 @@ unsigned char *WINAPI NdrConformantStringUnmarshall( PMIDL_STUB_MESSAGE pStubMsg
FIXME
(
"sized string format=%d
\n
"
,
pFormat
[
1
]);
}
len
=
pStubMsg
->
ActualCount
;
if
(
fMustAlloc
||
!*
ppMemory
)
*
ppMemory
=
NdrAllocate
(
pStubMsg
,
len
*
esize
+
BUFFER_PARANOIA
);
...
...
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