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
7ef5c3c7
Commit
7ef5c3c7
authored
Jun 07, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
Jun 08, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Implement full-pointer support for interpreted stubs.
Move the calls to the full pointer init functions before NdrClient/ServerInitializeNew, like in MIDL-generated code.
parent
5eaf49f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
22 deletions
+8
-22
ndr_stubless.c
dlls/rpcrt4/ndr_stubless.c
+8
-22
No files found.
dlls/rpcrt4/ndr_stubless.c
View file @
7ef5c3c7
...
...
@@ -571,6 +571,10 @@ LONG_PTR WINAPIV NdrClientCall2(PMIDL_STUB_DESC pStubDesc, PFORMAT_STRING pForma
pFormat
+=
sizeof
(
NDR_PROC_HEADER
);
}
/* create the full pointer translation tables, if requested */
if
(
pProcHeader
->
Oi_flags
&
RPC_FC_PROC_OIF_FULLPTR
)
stubMsg
.
FullPtrXlatTables
=
NdrFullPointerXlatInit
(
0
,
XLAT_CLIENT
);
if
(
pProcHeader
->
Oi_flags
&
RPC_FC_PROC_OIF_OBJECT
)
{
/* object is always the first argument */
...
...
@@ -622,14 +626,6 @@ LONG_PTR WINAPIV NdrClientCall2(PMIDL_STUB_DESC pStubDesc, PFORMAT_STRING pForma
pFormat
+=
pExtensions
->
Size
;
}
/* create the full pointer translation tables, if requested */
if
(
pProcHeader
->
Oi_flags
&
RPC_FC_PROC_OIF_FULLPTR
)
#if 0
stubMsg.FullPtrXlatTables = NdrFullPointerXlatInit(0,XLAT_CLIENT);
#else
FIXME
(
"initialize full pointer translation tables
\n
"
);
#endif
stubMsg
.
BufferLength
=
0
;
/* store the RPC flags away */
...
...
@@ -935,8 +931,6 @@ LONG_PTR WINAPIV NdrClientCall2(PMIDL_STUB_DESC pStubDesc, PFORMAT_STRING pForma
}
}
/* FIXME: unbind the binding handle */
if
(
ext_flags
.
HasNewCorrDesc
)
{
/* free extra correlation package */
...
...
@@ -948,11 +942,9 @@ LONG_PTR WINAPIV NdrClientCall2(PMIDL_STUB_DESC pStubDesc, PFORMAT_STRING pForma
/* NdrPipesDone(...) */
}
#if 0
/* free the full pointer translation tables */
if
(
pProcHeader
->
Oi_flags
&
RPC_FC_PROC_OIF_FULLPTR
)
NdrFullPointerXlatFree
(
stubMsg
.
FullPtrXlatTables
);
#endif
/* free marshalling buffer */
if
(
pProcHeader
->
Oi_flags
&
RPC_FC_PROC_OIF_OBJECT
)
...
...
@@ -1083,6 +1075,10 @@ long WINAPI NdrStubCall2(
RpcRaiseException
(
RPC_X_WRONG_STUB_VERSION
);
}
/* create the full pointer translation tables, if requested */
if
(
pProcHeader
->
Oi_flags
&
RPC_FC_PROC_OIF_FULLPTR
)
stubMsg
.
FullPtrXlatTables
=
NdrFullPointerXlatInit
(
0
,
XLAT_SERVER
);
if
(
pProcHeader
->
Oi_flags
&
RPC_FC_PROC_OIF_RPCFLAGS
)
{
NDR_PROC_HEADER_RPC
*
pProcHeader
=
(
NDR_PROC_HEADER_RPC
*
)
&
pFormat
[
0
];
...
...
@@ -1157,14 +1153,6 @@ long WINAPI NdrStubCall2(
else
NdrServerInitializeNew
(
pRpcMsg
,
&
stubMsg
,
pStubDesc
);
/* create the full pointer translation tables, if requested */
if
(
pProcHeader
->
Oi_flags
&
RPC_FC_PROC_OIF_FULLPTR
)
#if 0
stubMsg.FullPtrXlatTables = NdrFullPointerXlatInit(0,XLAT_SERVER);
#else
FIXME
(
"initialize full pointer translation tables
\n
"
);
#endif
/* store the RPC flags away */
if
(
pProcHeader
->
Oi_flags
&
RPC_FC_PROC_OIF_RPCFLAGS
)
pRpcMsg
->
RpcFlags
=
((
NDR_PROC_HEADER_RPC
*
)
pProcHeader
)
->
rpc_flags
;
...
...
@@ -1505,11 +1493,9 @@ long WINAPI NdrStubCall2(
/* NdrPipesDone(...) */
}
#if 0
/* free the full pointer translation tables */
if
(
pProcHeader
->
Oi_flags
&
RPC_FC_PROC_OIF_FULLPTR
)
NdrFullPointerXlatFree
(
stubMsg
.
FullPtrXlatTables
);
#endif
/* free server function stack */
HeapFree
(
GetProcessHeap
(),
0
,
args
);
...
...
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