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
ead057c4
Commit
ead057c4
authored
Jan 14, 2005
by
Robert Shearman
Committed by
Alexandre Julliard
Jan 14, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Don't use the pipe caching code because it doesn't work correctly at
the moment. - Always write disconnect reply packet, even in failure cases.
parent
8af3e67e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
rpc.c
dlls/ole32/rpc.c
+10
-5
No files found.
dlls/ole32/rpc.c
View file @
ead057c4
...
@@ -180,18 +180,23 @@ static DWORD WINAPI stub_dispatch_thread(LPVOID);
...
@@ -180,18 +180,23 @@ static DWORD WINAPI stub_dispatch_thread(LPVOID);
static
HRESULT
static
HRESULT
PIPE_RegisterPipe
(
wine_marshal_id
*
mid
,
HANDLE
hPipe
,
BOOL
startreader
)
{
PIPE_RegisterPipe
(
wine_marshal_id
*
mid
,
HANDLE
hPipe
,
BOOL
startreader
)
{
/* FIXME: this pipe caching code is commented out because it is breaks the
* tests, causing them hang due to writing to or reading from the wrong pipe.
*/
#if 0
int i;
int i;
char
pipefn
[
100
];
for (i=0;i<nrofpipes;i++)
for (i=0;i<nrofpipes;i++)
if (pipes[i].mid.oxid==mid->oxid)
if (pipes[i].mid.oxid==mid->oxid)
return S_OK;
return S_OK;
#endif
if
(
nrofpipes
+
1
>=
MAX_WINE_PIPES
)
if
(
nrofpipes
+
1
>=
MAX_WINE_PIPES
)
{
{
FIXME
(
"Out of pipes, please increase MAX_WINE_PIPES
\n
"
);
FIXME
(
"Out of pipes, please increase MAX_WINE_PIPES
\n
"
);
return
E_OUTOFMEMORY
;
return
E_OUTOFMEMORY
;
}
}
sprintf
(
pipefn
,
OLESTUBMGR
"_%08lx%08lx"
,(
DWORD
)(
mid
->
oxid
>>
32
),(
DWORD
)
mid
->
oxid
);
memcpy
(
&
(
pipes
[
nrofpipes
].
mid
),
mid
,
sizeof
(
*
mid
));
memcpy
(
&
(
pipes
[
nrofpipes
].
mid
),
mid
,
sizeof
(
*
mid
));
pipes
[
nrofpipes
].
hPipe
=
hPipe
;
pipes
[
nrofpipes
].
hPipe
=
hPipe
;
pipes
[
nrofpipes
].
apt
=
COM_CurrentApt
();
pipes
[
nrofpipes
].
apt
=
COM_CurrentApt
();
...
@@ -788,7 +793,7 @@ COM_RpcReceive(wine_pipe *xpipe) {
...
@@ -788,7 +793,7 @@ COM_RpcReceive(wine_pipe *xpipe) {
hres
=
read_pipe
(
xhPipe
,
&
header
,
sizeof
(
header
));
hres
=
read_pipe
(
xhPipe
,
&
header
,
sizeof
(
header
));
if
(
hres
)
{
if
(
hres
)
{
ERR
(
"could not read disconnect header
\n
"
);
ERR
(
"could not read disconnect header
\n
"
);
goto
end
;
goto
disconnect_
end
;
}
}
TRACE
(
"read disconnect header
\n
"
);
TRACE
(
"read disconnect header
\n
"
);
...
@@ -796,15 +801,15 @@ COM_RpcReceive(wine_pipe *xpipe) {
...
@@ -796,15 +801,15 @@ COM_RpcReceive(wine_pipe *xpipe) {
if
(
!
(
stubmgr
=
get_stub_manager
(
header
.
mid
.
oxid
,
header
.
mid
.
oid
)))
if
(
!
(
stubmgr
=
get_stub_manager
(
header
.
mid
.
oxid
,
header
.
mid
.
oid
)))
{
{
ERR
(
"could not locate stub to disconnect, mid.oid=%s
\n
"
,
wine_dbgstr_longlong
(
header
.
mid
.
oid
));
ERR
(
"could not locate stub to disconnect, mid.oid=%s
\n
"
,
wine_dbgstr_longlong
(
header
.
mid
.
oid
));
goto
end
;
goto
disconnect_
end
;
}
}
stub_manager_ext_release
(
stubmgr
,
1
);
stub_manager_ext_release
(
stubmgr
,
1
);
stub_manager_int_release
(
stubmgr
);
stub_manager_int_release
(
stubmgr
);
disconnect_end:
write_pipe
(
xhPipe
,
&
magic
,
sizeof
(
magic
));
write_pipe
(
xhPipe
,
&
magic
,
sizeof
(
magic
));
goto
end
;
goto
end
;
}
else
if
(
reqtype
==
REQTYPE_REQUEST
)
{
}
else
if
(
reqtype
==
REQTYPE_REQUEST
)
{
wine_rpc_request
*
xreq
;
wine_rpc_request
*
xreq
;
...
...
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