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
ce96eb79
Commit
ce96eb79
authored
Mar 16, 2010
by
Jörg Höhle
Committed by
Alexandre Julliard
Mar 17, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvfw32: MCI Step is like Seek.
parent
5f6962c7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
21 deletions
+8
-21
mciwnd.c
dlls/msvfw32/mciwnd.c
+8
-21
No files found.
dlls/msvfw32/mciwnd.c
View file @
ce96eb79
...
...
@@ -1298,30 +1298,23 @@ end_of_mci_open:
}
case
MCI_SEEK
:
case
MCI_STEP
:
{
MCI_SEEK_PARMS
mci_seek
;
switch
(
lParam
)
{
case
MCIWND_START
:
lParam
=
SendMessageW
(
hWnd
,
MCIWNDM_GETSTART
,
0
,
0
);
break
;
case
MCIWND_END
:
lParam
=
SendMessageW
(
hWnd
,
MCIWNDM_GETEND
,
0
,
0
);
break
;
}
MCI_SEEK_PARMS
mci_seek
;
/* Layout is useable as MCI_XYZ_STEP_PARMS */
DWORD
flags
=
MCI_STEP
==
wMsg
?
0
:
MCIWND_START
==
lParam
?
MCI_SEEK_TO_START
:
MCIWND_END
==
lParam
?
MCI_SEEK_TO_END
:
MCI_TO
;
mci_seek
.
dwTo
=
lParam
;
mwi
->
lasterror
=
mciSendCommandW
(
mwi
->
mci
,
MCI_SEEK
,
MCI_TO
,
(
DWORD_PTR
)
&
mci_seek
);
mwi
->
lasterror
=
mciSendCommandW
(
mwi
->
mci
,
wMsg
,
flags
,
(
DWORD_PTR
)
&
mci_seek
);
if
(
mwi
->
lasterror
)
{
MCIWND_notify_error
(
mwi
);
return
mwi
->
lasterror
;
}
/* update window to reflect the state */
InvalidateRect
(
hWnd
,
NULL
,
TRUE
);
else
InvalidateRect
(
hWnd
,
NULL
,
TRUE
);
return
0
;
}
...
...
@@ -1364,15 +1357,9 @@ end_of_mci_open:
}
case
MCI_PAUSE
:
case
MCI_STEP
:
case
MCI_STOP
:
case
MCI_RESUME
:
mci_generic_command
(
mwi
,
wMsg
);
if
(
wMsg
==
MCI_STEP
&&
!
mwi
->
lasterror
)
{
/* update window to reflect the state */
InvalidateRect
(
hWnd
,
NULL
,
TRUE
);
}
return
mwi
->
lasterror
;
case
MCI_CONFIGURE
:
...
...
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