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
a34831df
Commit
a34831df
authored
Nov 26, 2009
by
Jörg Höhle
Committed by
Alexandre Julliard
Feb 12, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mciavi: First check inputs, then (perhaps) stop and act.
parent
403a820e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
22 deletions
+6
-22
mciavi.c
dlls/mciavi32/mciavi.c
+6
-22
No files found.
dlls/mciavi32/mciavi.c
View file @
a34831df
...
...
@@ -217,8 +217,6 @@ static DWORD MCIAVI_mciOpen(UINT wDevID, DWORD dwFlags,
TRACE
(
"(%04x, %08X, %p)
\n
"
,
wDevID
,
dwFlags
,
lpOpenParms
);
MCIAVI_mciStop
(
wDevID
,
MCI_WAIT
,
NULL
);
if
(
lpOpenParms
==
NULL
)
return
MCIERR_NULL_PARAMETER_BLOCK
;
wma
=
(
WINE_MCIAVI
*
)
mciGetDriverData
(
wDevID
);
...
...
@@ -300,8 +298,6 @@ DWORD MCIAVI_mciClose(UINT wDevID, DWORD dwFlags, LPMCI_GENERIC_PARMS lpParms)
TRACE
(
"(%04x, %08X, %p)
\n
"
,
wDevID
,
dwFlags
,
lpParms
);
MCIAVI_mciStop
(
wDevID
,
MCI_WAIT
,
NULL
);
wma
=
MCIAVI_mciGetOpenDev
(
wDevID
);
if
(
wma
==
NULL
)
return
MCIERR_INVALID_DEVICE_ID
;
...
...
@@ -676,13 +672,13 @@ static DWORD MCIAVI_mciSeek(UINT wDevID, DWORD dwFlags, LPMCI_SEEK_PARMS lpParms
TRACE
(
"(%04x, %08X, %p)
\n
"
,
wDevID
,
dwFlags
,
lpParms
);
MCIAVI_mciStop
(
wDevID
,
MCI_WAIT
,
NULL
);
if
(
lpParms
==
NULL
)
return
MCIERR_NULL_PARAMETER_BLOCK
;
wma
=
MCIAVI_mciGetOpenDev
(
wDevID
);
if
(
wma
==
NULL
)
return
MCIERR_INVALID_DEVICE_ID
;
MCIAVI_mciStop
(
wDevID
,
MCI_WAIT
,
NULL
);
EnterCriticalSection
(
&
wma
->
cs
);
if
(
dwFlags
&
MCI_SEEK_TO_START
)
{
...
...
@@ -718,13 +714,13 @@ static DWORD MCIAVI_mciLoad(UINT wDevID, DWORD dwFlags, LPMCI_DGV_LOAD_PARMSW lp
FIXME
(
"(%04x, %08x, %p) : stub
\n
"
,
wDevID
,
dwFlags
,
lpParms
);
MCIAVI_mciStop
(
wDevID
,
MCI_WAIT
,
NULL
);
if
(
lpParms
==
NULL
)
return
MCIERR_NULL_PARAMETER_BLOCK
;
wma
=
MCIAVI_mciGetOpenDev
(
wDevID
);
if
(
wma
==
NULL
)
return
MCIERR_INVALID_DEVICE_ID
;
MCIAVI_mciStop
(
wDevID
,
MCI_WAIT
,
NULL
);
return
0
;
}
...
...
@@ -737,8 +733,6 @@ static DWORD MCIAVI_mciRealize(UINT wDevID, DWORD dwFlags, LPMCI_GENERIC_PARMS l
FIXME
(
"(%04x, %08x, %p) : stub
\n
"
,
wDevID
,
dwFlags
,
lpParms
);
MCIAVI_mciStop
(
wDevID
,
MCI_WAIT
,
NULL
);
if
(
lpParms
==
NULL
)
return
MCIERR_NULL_PARAMETER_BLOCK
;
wma
=
MCIAVI_mciGetOpenDev
(
wDevID
);
...
...
@@ -780,13 +774,13 @@ static DWORD MCIAVI_mciStep(UINT wDevID, DWORD dwFlags, LPMCI_DGV_STEP_PARMS lpP
FIXME
(
"(%04x, %08x, %p) : stub
\n
"
,
wDevID
,
dwFlags
,
lpParms
);
MCIAVI_mciStop
(
wDevID
,
MCI_WAIT
,
NULL
);
if
(
lpParms
==
NULL
)
return
MCIERR_NULL_PARAMETER_BLOCK
;
wma
=
MCIAVI_mciGetOpenDev
(
wDevID
);
if
(
wma
==
NULL
)
return
MCIERR_INVALID_DEVICE_ID
;
MCIAVI_mciStop
(
wDevID
,
MCI_WAIT
,
NULL
);
return
0
;
}
...
...
@@ -799,8 +793,6 @@ static DWORD MCIAVI_mciCue(UINT wDevID, DWORD dwFlags, LPMCI_DGV_CUE_PARMS lpPar
FIXME
(
"(%04x, %08x, %p) : stub
\n
"
,
wDevID
,
dwFlags
,
lpParms
);
MCIAVI_mciStop
(
wDevID
,
MCI_WAIT
,
NULL
);
if
(
lpParms
==
NULL
)
return
MCIERR_NULL_PARAMETER_BLOCK
;
wma
=
MCIAVI_mciGetOpenDev
(
wDevID
);
...
...
@@ -818,8 +810,6 @@ static DWORD MCIAVI_mciSetAudio(UINT wDevID, DWORD dwFlags, LPMCI_DGV_SETAUDIO_P
FIXME
(
"(%04x, %08x, %p) : stub
\n
"
,
wDevID
,
dwFlags
,
lpParms
);
MCIAVI_mciStop
(
wDevID
,
MCI_WAIT
,
NULL
);
if
(
lpParms
==
NULL
)
return
MCIERR_NULL_PARAMETER_BLOCK
;
wma
=
MCIAVI_mciGetOpenDev
(
wDevID
);
...
...
@@ -837,8 +827,6 @@ static DWORD MCIAVI_mciSignal(UINT wDevID, DWORD dwFlags, LPMCI_DGV_SIGNAL_PARMS
FIXME
(
"(%04x, %08x, %p) : stub
\n
"
,
wDevID
,
dwFlags
,
lpParms
);
MCIAVI_mciStop
(
wDevID
,
MCI_WAIT
,
NULL
);
if
(
lpParms
==
NULL
)
return
MCIERR_NULL_PARAMETER_BLOCK
;
wma
=
MCIAVI_mciGetOpenDev
(
wDevID
);
...
...
@@ -856,8 +844,6 @@ static DWORD MCIAVI_mciSetVideo(UINT wDevID, DWORD dwFlags, LPMCI_DGV_SETVIDEO_P
FIXME
(
"(%04x, %08x, %p) : stub
\n
"
,
wDevID
,
dwFlags
,
lpParms
);
MCIAVI_mciStop
(
wDevID
,
MCI_WAIT
,
NULL
);
if
(
lpParms
==
NULL
)
return
MCIERR_NULL_PARAMETER_BLOCK
;
wma
=
MCIAVI_mciGetOpenDev
(
wDevID
);
...
...
@@ -875,8 +861,6 @@ static DWORD MCIAVI_mciConfigure(UINT wDevID, DWORD dwFlags, LPMCI_GENERIC_PARMS
FIXME
(
"(%04x, %08x, %p) : stub
\n
"
,
wDevID
,
dwFlags
,
lpParms
);
MCIAVI_mciStop
(
wDevID
,
MCI_WAIT
,
NULL
);
if
(
lpParms
==
NULL
)
return
MCIERR_NULL_PARAMETER_BLOCK
;
wma
=
MCIAVI_mciGetOpenDev
(
wDevID
);
...
...
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