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
36aee719
Commit
36aee719
authored
Dec 07, 2004
by
Mike Hearn
Committed by
Alexandre Julliard
Dec 07, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename the STUBMGR thread to more accurately reflect its purpose.
parent
23ded07e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
13 deletions
+18
-13
compobj.c
dlls/ole32/compobj.c
+2
-2
compobj_private.h
dlls/ole32/compobj_private.h
+1
-1
marshal.c
dlls/ole32/marshal.c
+2
-1
rpc.c
dlls/ole32/rpc.c
+13
-9
No files found.
dlls/ole32/compobj.c
View file @
36aee719
...
...
@@ -1263,8 +1263,8 @@ HRESULT WINAPI CoRegisterClassObject(
if
(
dwClsContext
&
CLSCTX_LOCAL_SERVER
)
{
DWORD
tid
;
STUBMGR_Start
();
newClass
->
hThread
=
CreateThread
(
NULL
,
0
,
_LocalServerThread
,
newClass
,
0
,
&
tid
);
start_listener_thread
();
newClass
->
hThread
=
CreateThread
(
NULL
,
0
,
_LocalServerThread
,
newClass
,
0
,
&
tid
);
}
return
S_OK
;
}
...
...
dlls/ole32/compobj_private.h
View file @
36aee719
...
...
@@ -152,7 +152,7 @@ HRESULT MARSHAL_Disconnect_Proxies();
HRESULT
MARSHAL_GetStandardMarshalCF
(
LPVOID
*
ppv
);
void
STUBMGR_Start
();
void
start_listener_thread
();
extern
HRESULT
PIPE_GetNewPipeBuf
(
wine_marshal_id
*
mid
,
IRpcChannelBuffer
**
pipebuf
);
...
...
dlls/ole32/marshal.c
View file @
36aee719
...
...
@@ -502,7 +502,8 @@ CoMarshalInterface( IStream *pStm, REFIID riid, IUnknown *pUnk,
if
(
pUnk
==
NULL
)
return
E_INVALIDARG
;
STUBMGR_Start
();
/* Just to be sure we have one running. */
start_listener_thread
();
/* Just to be sure we have one running. */
mid
.
processid
=
GetCurrentProcessId
();
IUnknown_QueryInterface
(
pUnk
,
&
IID_IUnknown
,(
LPVOID
*
)
&
pUnknown
);
mid
.
objectid
=
(
DWORD
)
pUnknown
;
...
...
dlls/ole32/rpc.c
View file @
36aee719
...
...
@@ -759,13 +759,16 @@ _StubReaderThread(LPVOID param) {
return
0
;
}
static
DWORD
WINAPI
_StubMgrThread
(
LPVOID
param
)
{
/* This thread listens on a named pipe for the entire process. It
* deals with incoming connection requests to objects.
*/
static
DWORD
WINAPI
listener_thread
(
LPVOID
param
)
{
char
pipefn
[
200
];
HANDLE
listenPipe
;
sprintf
(
pipefn
,
OLESTUBMGR
"_%08lx"
,
GetCurrentProcessId
());
TRACE
(
"
Stub Manager T
hread starting on (%s)
\n
"
,
pipefn
);
TRACE
(
"
Process listener t
hread starting on (%s)
\n
"
,
pipefn
);
while
(
1
)
{
listenPipe
=
CreateNamedPipeA
(
...
...
@@ -792,14 +795,15 @@ _StubMgrThread(LPVOID param) {
return
0
;
}
void
STUBMGR_Start
()
{
static
BOOL
stubMgrR
unning
=
FALSE
;
void
start_listener_thread
()
{
static
BOOL
r
unning
=
FALSE
;
DWORD
tid
;
if
(
!
stubMgrRunning
)
{
stubMgrRunning
=
TRUE
;
CreateThread
(
NULL
,
0
,
_StubMgrThread
,
NULL
,
0
,
&
tid
);
if
(
!
running
)
{
running
=
TRUE
;
CreateThread
(
NULL
,
0
,
listener_thread
,
NULL
,
0
,
&
tid
);
Sleep
(
2000
);
/* actually we just try opening the pipe until it succeeds */
}
}
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