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
c75d1cba
Commit
c75d1cba
authored
Nov 07, 2009
by
Jörg Höhle
Committed by
Alexandre Julliard
Nov 10, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mciwave: Return on error in Seek.
parent
d0e1a4f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
23 deletions
+19
-23
mciwave.c
dlls/mciwave/mciwave.c
+19
-23
No files found.
dlls/mciwave/mciwave.c
View file @
c75d1cba
...
@@ -1202,37 +1202,33 @@ static DWORD WAVE_mciResume(MCIDEVICEID wDevID, DWORD dwFlags, LPMCI_GENERIC_PAR
...
@@ -1202,37 +1202,33 @@ static DWORD WAVE_mciResume(MCIDEVICEID wDevID, DWORD dwFlags, LPMCI_GENERIC_PAR
*/
*/
static
DWORD
WAVE_mciSeek
(
MCIDEVICEID
wDevID
,
DWORD
dwFlags
,
LPMCI_SEEK_PARMS
lpParms
)
static
DWORD
WAVE_mciSeek
(
MCIDEVICEID
wDevID
,
DWORD
dwFlags
,
LPMCI_SEEK_PARMS
lpParms
)
{
{
DWORD
ret
=
0
;
WINE_MCIWAVE
*
wmw
=
WAVE_mciGetOpenDev
(
wDevID
);
WINE_MCIWAVE
*
wmw
=
WAVE_mciGetOpenDev
(
wDevID
);
TRACE
(
"(%04X, %08X, %p);
\n
"
,
wDevID
,
dwFlags
,
lpParms
);
TRACE
(
"(%04X, %08X, %p);
\n
"
,
wDevID
,
dwFlags
,
lpParms
);
if
(
lpParms
==
NULL
)
{
if
(
lpParms
==
NULL
)
return
MCIERR_NULL_PARAMETER_BLOCK
;
ret
=
MCIERR_NULL_PARAMETER_BLOCK
;
if
(
wmw
==
NULL
)
return
MCIERR_INVALID_DEVICE_ID
;
}
else
if
(
wmw
==
NULL
)
{
ret
=
MCIERR_INVALID_DEVICE_ID
;
WAVE_mciStop
(
wDevID
,
MCI_WAIT
,
0
);
if
(
dwFlags
&
MCI_SEEK_TO_START
)
{
wmw
->
dwPosition
=
0
;
}
else
if
(
dwFlags
&
MCI_SEEK_TO_END
)
{
wmw
->
dwPosition
=
wmw
->
ckWaveData
.
cksize
;
}
else
if
(
dwFlags
&
MCI_TO
)
{
wmw
->
dwPosition
=
WAVE_ConvertTimeFormatToByte
(
wmw
,
lpParms
->
dwTo
);
}
else
{
}
else
{
WAVE_mciStop
(
wDevID
,
MCI_WAIT
,
0
);
WARN
(
"dwFlag doesn't tell where to seek to...
\n
"
);
return
MCIERR_MISSING_PARAMETER
;
if
(
dwFlags
&
MCI_SEEK_TO_START
)
{
}
wmw
->
dwPosition
=
0
;
}
else
if
(
dwFlags
&
MCI_SEEK_TO_END
)
{
wmw
->
dwPosition
=
wmw
->
ckWaveData
.
cksize
;
}
else
if
(
dwFlags
&
MCI_TO
)
{
wmw
->
dwPosition
=
WAVE_ConvertTimeFormatToByte
(
wmw
,
lpParms
->
dwTo
);
}
else
{
WARN
(
"dwFlag doesn't tell where to seek to...
\n
"
);
return
MCIERR_MISSING_PARAMETER
;
}
TRACE
(
"Seeking to position=%u bytes
\n
"
,
wmw
->
dwPosition
);
TRACE
(
"Seeking to position=%u bytes
\n
"
,
wmw
->
dwPosition
);
if
(
dwFlags
&
MCI_NOTIFY
)
{
if
(
dwFlags
&
MCI_NOTIFY
)
{
mciDriverNotify
(
HWND_32
(
LOWORD
(
lpParms
->
dwCallback
)),
mciDriverNotify
(
HWND_32
(
LOWORD
(
lpParms
->
dwCallback
)),
wmw
->
openParms
.
wDeviceID
,
MCI_NOTIFY_SUCCESSFUL
);
wmw
->
openParms
.
wDeviceID
,
MCI_NOTIFY_SUCCESSFUL
);
}
}
}
return
ret
;
return
MMSYSERR_NOERROR
;
}
}
/**************************************************************************
/**************************************************************************
...
...
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