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
26541a00
Commit
26541a00
authored
Jul 29, 2004
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Authors: Mike Hearn <mh@codeweavers.com>, Robert Shearman <rob@codeweavers.com>
Add a comment on the SendReceive behaviour. Improve two others.
parent
4a132c4f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
rpc.c
dlls/ole32/rpc.c
+6
-4
No files found.
dlls/ole32/rpc.c
View file @
26541a00
...
@@ -85,10 +85,11 @@ typedef struct _wine_rpc_request {
...
@@ -85,10 +85,11 @@ typedef struct _wine_rpc_request {
static
wine_rpc_request
**
reqs
=
NULL
;
static
wine_rpc_request
**
reqs
=
NULL
;
static
int
nrofreqs
=
0
;
static
int
nrofreqs
=
0
;
/* This pipe is _thread_ based */
/* This pipe is _thread_ based, each thread which talks to a remote
* apartment (mid) has its own pipe */
typedef
struct
_wine_pipe
{
typedef
struct
_wine_pipe
{
wine_marshal_id
mid
;
/* target mid */
wine_marshal_id
mid
;
/* target mid */
DWORD
tid
;
/* thread
in which we execut
e */
DWORD
tid
;
/* thread
which owns this outgoing pip
e */
HANDLE
hPipe
;
HANDLE
hPipe
;
int
pending
;
int
pending
;
...
@@ -298,7 +299,7 @@ PipeBuf_GetBuffer(
...
@@ -298,7 +299,7 @@ PipeBuf_GetBuffer(
)
{
)
{
/*ICOM_THIS(PipeBuf,iface);*/
/*ICOM_THIS(PipeBuf,iface);*/
TRACE
(
"(%p,%s)
, slightly wrong.
\n
"
,
msg
,
debugstr_guid
(
riid
));
TRACE
(
"(%p,%s)
\n
"
,
msg
,
debugstr_guid
(
riid
));
/* probably reuses IID in real. */
/* probably reuses IID in real. */
if
(
msg
->
cbBuffer
&&
(
msg
->
Buffer
==
NULL
))
if
(
msg
->
cbBuffer
&&
(
msg
->
Buffer
==
NULL
))
msg
->
Buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
msg
->
cbBuffer
);
msg
->
Buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
msg
->
cbBuffer
);
...
@@ -366,8 +367,9 @@ RPC_QueueRequestAndWait(wine_rpc_request *req) {
...
@@ -366,8 +367,9 @@ RPC_QueueRequestAndWait(wine_rpc_request *req) {
hres
=
_xwrite
(
req
->
hPipe
,
req
->
Buffer
,
req
->
reqh
.
cbBuffer
);
hres
=
_xwrite
(
req
->
hPipe
,
req
->
Buffer
,
req
->
reqh
.
cbBuffer
);
if
(
hres
)
return
hres
;
if
(
hres
)
return
hres
;
/* This loop is about allowing re-entrancy. While waiting for the
* response to one RPC we may receive a request starting another. */
while
(
1
)
{
while
(
1
)
{
/*WaitForSingleObject(hRpcChanged,INFINITE);*/
hres
=
_read_one
(
xpipe
);
hres
=
_read_one
(
xpipe
);
if
(
hres
)
break
;
if
(
hres
)
break
;
...
...
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