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
097c8edc
Commit
097c8edc
authored
Apr 19, 2003
by
Ove Kaaven
Committed by
Alexandre Julliard
Apr 19, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a race condition on RPC worker thread creation, and a typo.
parent
daffdb62
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
rpc_server.c
dlls/rpcrt4/rpc_server.c
+10
-3
No files found.
dlls/rpcrt4/rpc_server.c
View file @
097c8edc
...
...
@@ -299,11 +299,18 @@ static DWORD CALLBACK RPCRT4_io_thread(LPVOID the_arg)
static
void
RPCRT4_new_client
(
RpcConnection
*
conn
)
{
conn
->
thread
=
CreateThread
(
NULL
,
0
,
RPCRT4_io_thread
,
conn
,
0
,
NULL
);
if
(
!
conn
->
thread
)
{
HANDLE
thread
=
CreateThread
(
NULL
,
0
,
RPCRT4_io_thread
,
conn
,
0
,
NULL
);
if
(
!
thread
)
{
DWORD
err
=
GetLastError
();
ERR
(
"failed to create thread, error=%08lx
\n
"
,
err
);
RPCRT4_DestroyConnection
(
conn
);
}
/* we could set conn->thread, but then we'd have to make the io_thread wait
* for that, otherwise the thread might finish, destroy the connection, and
* free the memory we'd write to before we did, causing crashes and stuff -
* so let's implement that later, when we really need conn->thread */
CloseHandle
(
thread
);
}
static
DWORD
CALLBACK
RPCRT4_server_thread
(
LPVOID
the_arg
)
...
...
@@ -329,7 +336,7 @@ static DWORD CALLBACK RPCRT4_server_thread(LPVOID the_arg)
}
cps
=
cps
->
Next
;
}
/* make array of conn
ing
s */
/* make array of conn
ection
s */
objs
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
objs
,
count
*
sizeof
(
HANDLE
));
objs
[
0
]
=
m_event
;
count
=
1
;
...
...
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