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
7b0d8651
Commit
7b0d8651
authored
Jan 31, 2015
by
Akihiro Sagawa
Committed by
Alexandre Julliard
Feb 03, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mciqtz32: "status mode" returns resource strings.
parent
8f6650cb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
mciqtz.c
dlls/mciqtz32/mciqtz.c
+10
-6
mci.c
dlls/winmm/tests/mci.c
+1
-1
No files found.
dlls/mciqtz32/mciqtz.c
View file @
7b0d8651
...
...
@@ -605,6 +605,7 @@ static DWORD MCIQTZ_mciStatus(UINT wDevID, DWORD dwFlags, LPMCI_DGV_STATUS_PARMS
{
WINE_MCIQTZ
*
wma
;
HRESULT
hr
;
DWORD
ret
=
MCI_INTEGER_RETURNED
;
TRACE
(
"(%04x, %08X, %p)
\n
"
,
wDevID
,
dwFlags
,
lpParms
);
...
...
@@ -663,30 +664,33 @@ static DWORD MCIQTZ_mciStatus(UINT wDevID, DWORD dwFlags, LPMCI_DGV_STATUS_PARMS
LONG
state
=
State_Stopped
;
IMediaControl_GetState
(
wma
->
pmctrl
,
-
1
,
&
state
);
if
(
state
==
State_Stopped
)
lpParms
->
dwReturn
=
M
CI_MODE_STOP
;
lpParms
->
dwReturn
=
M
AKEMCIRESOURCE
(
MCI_MODE_STOP
,
MCI_MODE_STOP
)
;
else
if
(
state
==
State_Running
)
{
LONG
code
;
LONG_PTR
p1
,
p2
;
lpParms
->
dwReturn
=
M
CI_MODE_PLAY
;
lpParms
->
dwReturn
=
M
AKEMCIRESOURCE
(
MCI_MODE_PLAY
,
MCI_MODE_PLAY
)
;
do
{
hr
=
IMediaEvent_GetEvent
(
wma
->
mevent
,
&
code
,
&
p1
,
&
p2
,
0
);
if
(
hr
==
S_OK
&&
code
==
EC_COMPLETE
){
lpParms
->
dwReturn
=
M
CI_MODE_STOP
;
lpParms
->
dwReturn
=
M
AKEMCIRESOURCE
(
MCI_MODE_STOP
,
MCI_MODE_STOP
)
;
IMediaControl_Stop
(
wma
->
pmctrl
);
}
}
while
(
hr
==
S_OK
);
}
else
if
(
state
==
State_Paused
)
lpParms
->
dwReturn
=
MCI_MODE_PAUSE
;
lpParms
->
dwReturn
=
MAKEMCIRESOURCE
(
MCI_MODE_PAUSE
,
MCI_MODE_PAUSE
);
ret
=
MCI_RESOURCE_RETURNED
;
break
;
}
case
MCI_STATUS_MEDIA_PRESENT
:
FIXME
(
"MCI_STATUS_MEDIA_PRESENT not implemented yet
\n
"
);
return
MCIERR_UNRECOGNIZED_COMMAND
;
case
MCI_STATUS_TIME_FORMAT
:
lpParms
->
dwReturn
=
wma
->
time_format
;
lpParms
->
dwReturn
=
MAKEMCIRESOURCE
(
wma
->
time_format
,
MCI_FORMAT_RETURN_BASE
+
wma
->
time_format
);
ret
=
MCI_RESOURCE_RETURNED
;
break
;
case
MCI_STATUS_READY
:
FIXME
(
"MCI_STATUS_READY not implemented yet
\n
"
);
...
...
@@ -702,7 +706,7 @@ static DWORD MCIQTZ_mciStatus(UINT wDevID, DWORD dwFlags, LPMCI_DGV_STATUS_PARMS
if
(
dwFlags
&
MCI_NOTIFY
)
mciDriverNotify
(
HWND_32
(
LOWORD
(
lpParms
->
dwCallback
)),
wDevID
,
MCI_NOTIFY_SUCCESSFUL
);
return
0
;
return
ret
;
}
/***************************************************************************
...
...
dlls/winmm/tests/mci.c
View file @
7b0d8651
...
...
@@ -1319,7 +1319,7 @@ static void test_playWaveTypeMpegvideo(void)
err
=
mciSendStringA
(
"status mysound mode"
,
buf
,
sizeof
(
buf
),
NULL
);
ok
(
!
err
,
"mci status mode returned %s
\n
"
,
dbg_mcierr
(
err
));
todo_wine
ok
(
!
strcmp
(
buf
,
"playing"
),
"mci status mode: %s
\n
"
,
buf
);
ok
(
!
strcmp
(
buf
,
"playing"
),
"mci status mode: %s
\n
"
,
buf
);
status_parm
.
dwItem
=
MCI_STATUS_MODE
;
err
=
mciSendCommandA
(
wDeviceID
,
MCI_STATUS
,
...
...
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