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
de0794a1
Commit
de0794a1
authored
Jul 05, 2022
by
Akihiro Sagawa
Committed by
Alexandre Julliard
Jul 07, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mciqtz32: Fix thread handle leak if a second play.
Signed-off-by:
Akihiro Sagawa
<
sagawa.aki@gmail.com
>
parent
43f23d3e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
4 deletions
+20
-4
mciqtz.c
dlls/mciqtz32/mciqtz.c
+7
-4
mci.c
dlls/winmm/tests/mci.c
+13
-0
No files found.
dlls/mciqtz32/mciqtz.c
View file @
de0794a1
...
...
@@ -449,10 +449,13 @@ static DWORD MCIQTZ_mciPlay(UINT wDevID, DWORD dwFlags, LPMCI_PLAY_PARMS lpParms
IVideoWindow_put_Visible
(
wma
->
vidwin
,
OATRUE
);
wma
->
thread
=
CreateThread
(
NULL
,
0
,
MCIQTZ_notifyThread
,
wma
,
0
,
NULL
);
if
(
!
wma
->
thread
)
{
TRACE
(
"Can't create thread
\n
"
);
return
MCIERR_INTERNAL
;
if
(
!
wma
->
thread
)
{
wma
->
thread
=
CreateThread
(
NULL
,
0
,
MCIQTZ_notifyThread
,
wma
,
0
,
NULL
);
if
(
!
wma
->
thread
)
{
TRACE
(
"Can't create thread
\n
"
);
return
MCIERR_INTERNAL
;
}
}
return
0
;
}
...
...
dlls/winmm/tests/mci.c
View file @
de0794a1
...
...
@@ -1336,6 +1336,19 @@ static void test_playWaveTypeMpegvideo(void)
err
=
mciSendStringA
(
"close mysound"
,
NULL
,
0
,
NULL
);
ok
(
!
err
,
"mci close returned %s
\n
"
,
dbg_mcierr
(
err
));
/* test a second play */
err
=
mciSendStringA
(
"open tempfile.wav type MPEGVideo alias mysound"
,
NULL
,
0
,
NULL
);
ok
(
err
==
ok_saved
,
"mci open tempfile.wav type MPEGVideo returned %s
\n
"
,
dbg_mcierr
(
err
));
err
=
mciSendStringA
(
"play mysound"
,
NULL
,
0
,
NULL
);
ok
(
!
err
,
"mci play retuend %s
\n
"
,
dbg_mcierr
(
err
));
err
=
mciSendStringA
(
"play mysound"
,
NULL
,
0
,
NULL
);
ok
(
!
err
,
"mci play retuend %s
\n
"
,
dbg_mcierr
(
err
));
err
=
mciSendStringA
(
"close mysound"
,
NULL
,
0
,
NULL
);
ok
(
!
err
,
"mci close returned %s
\n
"
,
dbg_mcierr
(
err
));
}
static
void
test_asyncWaveTypeMpegvideo
(
HWND
hwnd
)
...
...
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