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
1506e226
Commit
1506e226
authored
Apr 16, 2009
by
Christian Costa
Committed by
Alexandre Julliard
Apr 20, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mciqtz32: Use opened state to avoid device to be closed several times.
parent
de4f3dc8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
mciqtz.c
dlls/mciqtz32/mciqtz.c
+6
-6
mciqtz_private.h
dlls/mciqtz32/mciqtz_private.h
+1
-0
No files found.
dlls/mciqtz32/mciqtz.c
View file @
1506e226
...
...
@@ -185,6 +185,8 @@ static DWORD MCIQTZ_mciOpen(UINT wDevID, DWORD dwFlags,
goto
err
;
}
wma
->
opened
=
TRUE
;
return
0
;
err:
...
...
@@ -215,14 +217,12 @@ static DWORD MCIQTZ_mciClose(UINT wDevID, DWORD dwFlags, LPMCI_GENERIC_PARMS lpP
if
(
!
wma
)
return
MCIERR_INVALID_DEVICE_ID
;
if
(
wma
->
pgraph
)
if
(
wma
->
opened
)
{
IGraphBuilder_Release
(
wma
->
pgraph
);
wma
->
pgraph
=
NULL
;
if
(
wma
->
pmctrl
)
IMediaControl_Release
(
wma
->
pmctrl
);
wma
->
pmctrl
=
NULL
;
CoUninitialize
();
CoUninitialize
()
;
wma
->
opened
=
FALSE
;
}
return
0
;
}
...
...
dlls/mciqtz32/mciqtz_private.h
View file @
1506e226
...
...
@@ -27,6 +27,7 @@
typedef
struct
{
MCIDEVICEID
wDevID
;
BOOL
opened
;
IGraphBuilder
*
pgraph
;
IMediaControl
*
pmctrl
;
BOOL
started
;
...
...
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