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
2d14f89f
Commit
2d14f89f
authored
Dec 30, 2011
by
Pierre Schweitzer
Committed by
Alexandre Julliard
Jan 03, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dplayx: Fix handle leak.
parent
8ed701b3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
dplayx_messages.c
dlls/dplayx/dplayx_messages.c
+10
-10
No files found.
dlls/dplayx/dplayx_messages.c
View file @
2d14f89f
...
...
@@ -58,6 +58,7 @@ DWORD CreateLobbyMessageReceptionThread( HANDLE hNotifyEvent, HANDLE hStart,
{
DWORD
dwMsgThreadId
;
LPMSGTHREADINFO
lpThreadInfo
;
HANDLE
hThread
;
lpThreadInfo
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
lpThreadInfo
)
);
if
(
lpThreadInfo
==
NULL
)
...
...
@@ -83,21 +84,20 @@ DWORD CreateLobbyMessageReceptionThread( HANDLE hNotifyEvent, HANDLE hStart,
lpThreadInfo
->
hDeath
=
hDeath
;
lpThreadInfo
->
hSettingRead
=
hConnRead
;
if
(
!
CreateThread
(
NULL
,
/* Security attribs */
0
,
/* Stack */
DPL_MSG_ThreadMain
,
/* Msg reception function */
lpThreadInfo
,
/* Msg reception func parameter */
0
,
/* Flags */
&
dwMsgThreadId
/* Updated with thread id */
)
)
hThread
=
CreateThread
(
NULL
,
/* Security attribs */
0
,
/* Stack */
DPL_MSG_ThreadMain
,
/* Msg reception function */
lpThreadInfo
,
/* Msg reception func parameter */
0
,
/* Flags */
&
dwMsgThreadId
/* Updated with thread id */
);
if
(
hThread
==
NULL
)
{
ERR
(
"Unable to create msg thread
\n
"
);
goto
error
;
}
/* FIXME: Should I be closing the handle to the thread or does that
terminate the thread? */
CloseHandle
(
hThread
);
return
dwMsgThreadId
;
...
...
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