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
e745f93c
Commit
e745f93c
authored
Dec 30, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
Dec 31, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Fix the MIDL_STUB_MESSAGE fields set by NdrServerInitializeNew.
parent
f6a29a1e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
12 deletions
+32
-12
ndr_clientserver.c
dlls/rpcrt4/ndr_clientserver.c
+32
-12
No files found.
dlls/rpcrt4/ndr_clientserver.c
View file @
e745f93c
...
...
@@ -106,22 +106,42 @@ unsigned char* WINAPI NdrServerInitializeNew( PRPC_MESSAGE pRpcMsg, PMIDL_STUB_M
{
TRACE
(
"(pRpcMsg == ^%p, pStubMsg == ^%p, pStubDesc == ^%p)
\n
"
,
pRpcMsg
,
pStubMsg
,
pStubDesc
);
assert
(
pRpcMsg
&&
pStubMsg
&&
pStubDesc
);
/* not everyone allocates stack space for w2kReserved */
memset
(
pStubMsg
,
0
,
FIELD_OFFSET
(
MIDL_STUB_MESSAGE
,
pCSInfo
));
pStubMsg
->
ReuseBuffer
=
TRUE
;
pStubMsg
->
IsClient
=
FALSE
;
pStubMsg
->
StubDesc
=
pStubDesc
;
pStubMsg
->
pfnAllocate
=
pStubDesc
->
pfnAllocate
;
pStubMsg
->
pfnFree
=
pStubDesc
->
pfnFree
;
pStubMsg
->
RpcMsg
=
pRpcMsg
;
pStubMsg
->
Buffer
=
pStubMsg
->
BufferStart
=
pRpcMsg
->
Buffer
;
pStubMsg
->
BufferEnd
=
pStubMsg
->
Buffer
+
pRpcMsg
->
BufferLength
;
pStubMsg
->
BufferLength
=
pRpcMsg
->
BufferLength
;
pStubMsg
->
BufferEnd
=
pStubMsg
->
Buffer
+
pStubMsg
->
BufferLength
;
pStubMsg
->
IsClient
=
FALSE
;
pStubMsg
->
ReuseBuffer
=
FALSE
;
pStubMsg
->
pAllocAllNodesContext
=
NULL
;
pStubMsg
->
pPointerQueueState
=
NULL
;
pStubMsg
->
IgnoreEmbeddedPointers
=
0
;
pStubMsg
->
PointerBufferMark
=
NULL
;
pStubMsg
->
uFlags
=
0
;
pStubMsg
->
pfnAllocate
=
pStubDesc
->
pfnAllocate
;
pStubMsg
->
pfnFree
=
pStubDesc
->
pfnFree
;
pStubMsg
->
StackTop
=
NULL
;
pStubMsg
->
StubDesc
=
pStubDesc
;
pStubMsg
->
FullPtrXlatTables
=
NULL
;
pStubMsg
->
FullPtrRefId
=
0
;
pStubMsg
->
PointerLength
=
0
;
pStubMsg
->
fInDontFree
=
0
;
pStubMsg
->
fDontCallFreeInst
=
0
;
pStubMsg
->
fInOnlyParam
=
0
;
pStubMsg
->
fHasReturn
=
0
;
pStubMsg
->
fHasExtensions
=
0
;
pStubMsg
->
fHasNewCorrDesc
=
0
;
pStubMsg
->
fUnused
=
0
;
pStubMsg
->
dwDestContext
=
MSHCTX_DIFFERENTMACHINE
;
pStubMsg
->
pvDestContext
=
NULL
;
pStubMsg
->
pRpcChannelBuffer
=
NULL
;
pStubMsg
->
pArrayInfo
=
NULL
;
pStubMsg
->
dwStubPhase
=
0
;
/* FIXME: LowStackMark */
pStubMsg
->
pAsyncMsg
=
NULL
;
pStubMsg
->
pCorrInfo
=
NULL
;
pStubMsg
->
pCorrMemory
=
NULL
;
pStubMsg
->
pMemoryList
=
NULL
;
/* FIXME: determine the proper return value */
return
NULL
;
}
...
...
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