Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
3099a254
Commit
3099a254
authored
Oct 14, 2012
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 15, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Store destination context data in channel buffer.
parent
27d59c89
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
10 deletions
+15
-10
rpc.c
dlls/ole32/rpc.c
+15
-10
No files found.
dlls/ole32/rpc.c
View file @
3099a254
...
...
@@ -96,6 +96,9 @@ typedef struct
{
IRpcChannelBuffer
IRpcChannelBuffer_iface
;
LONG
refs
;
DWORD
dest_context
;
/* returned from GetDestCtx */
void
*
dest_context_data
;
/* returned from GetDestCtx */
}
RpcChannelBuffer
;
typedef
struct
...
...
@@ -105,8 +108,6 @@ typedef struct
RPC_BINDING_HANDLE
bind
;
/* handle to the remote server */
OXID
oxid
;
/* apartment in which the channel is valid */
DWORD
server_pid
;
/* id of server process */
DWORD
dest_context
;
/* returned from GetDestCtx */
LPVOID
dest_context_data
;
/* returned from GetDestCtx */
HANDLE
event
;
/* cached event handle */
}
ClientRpcChannelBuffer
;
...
...
@@ -1041,20 +1042,22 @@ static HRESULT WINAPI ClientRpcChannelBuffer_GetDestCtx(LPRPCCHANNELBUFFER iface
TRACE
(
"(%p,%p)
\n
"
,
pdwDestContext
,
ppvDestContext
);
*
pdwDestContext
=
This
->
dest_context
;
*
ppvDestContext
=
This
->
dest_context_data
;
*
pdwDestContext
=
This
->
super
.
dest_context
;
*
ppvDestContext
=
This
->
super
.
dest_context_data
;
return
S_OK
;
}
static
HRESULT
WINAPI
ServerRpcChannelBuffer_GetDestCtx
(
LPRPCCHANNELBUFFER
iface
,
DWORD
*
pdwDestContext
,
void
**
ppvDestContext
)
static
HRESULT
WINAPI
ServerRpcChannelBuffer_GetDestCtx
(
LPRPCCHANNELBUFFER
iface
,
DWORD
*
dest_context
,
void
**
dest_context_data
)
{
WARN
(
"(%p,%p), stub!
\n
"
,
pdwDestContext
,
ppvDestContext
);
RpcChannelBuffer
*
This
=
(
RpcChannelBuffer
*
)
iface
;
WARN
(
"(%p,%p), stub!
\n
"
,
dest_context
,
dest_context_data
);
/* FIXME: implement this by storing the dwDestContext and pvDestContext
* values passed into IMarshal_MarshalInterface and returning them here */
*
pdwDestContext
=
MSHCTX_DIFFERENTMACHINE
;
*
ppvDestContext
=
NULL
;
*
dest_context
=
This
->
dest_context
;
*
dest_context_data
=
This
->
dest_context_data
;
return
S_OK
;
}
...
...
@@ -1144,11 +1147,11 @@ HRESULT RPC_CreateClientChannel(const OXID *oxid, const IPID *ipid,
This
->
super
.
IRpcChannelBuffer_iface
.
lpVtbl
=
&
ClientRpcChannelBufferVtbl
;
This
->
super
.
refs
=
1
;
This
->
super
.
dest_context
=
dest_context
;
This
->
super
.
dest_context_data
=
dest_context_data
;
This
->
bind
=
bind
;
apartment_getoxid
(
COM_CurrentApt
(),
&
This
->
oxid
);
This
->
server_pid
=
oxid_info
->
dwPid
;
This
->
dest_context
=
dest_context
;
This
->
dest_context_data
=
dest_context_data
;
This
->
event
=
NULL
;
*
chan
=
&
This
->
super
.
IRpcChannelBuffer_iface
;
...
...
@@ -1164,6 +1167,8 @@ HRESULT RPC_CreateServerChannel(IRpcChannelBuffer **chan)
This
->
IRpcChannelBuffer_iface
.
lpVtbl
=
&
ServerRpcChannelBufferVtbl
;
This
->
refs
=
1
;
This
->
dest_context
=
MSHCTX_DIFFERENTMACHINE
;
This
->
dest_context_data
=
NULL
;
*
chan
=
&
This
->
IRpcChannelBuffer_iface
;
...
...
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