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
e03b59c6
Commit
e03b59c6
authored
Nov 28, 2009
by
Jörg Höhle
Committed by
Alexandre Julliard
Dec 18, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mciavi: Complete MCI GetDevCaps/capability.
The FIXME comments indicate flags where Wine differs from native w2k. The returned results are consistent with what Wine implements.
parent
95970bb5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
4 deletions
+43
-4
info.c
dlls/mciavi32/info.c
+43
-4
No files found.
dlls/mciavi32/info.c
View file @
e03b59c6
...
...
@@ -80,6 +80,7 @@ DWORD MCIAVI_mciGetDevCaps(UINT wDevID, DWORD dwFlags, LPMCI_GETDEVCAPS_PARMS l
if
(
lpParms
==
NULL
)
return
MCIERR_NULL_PARAMETER_BLOCK
;
if
(
wma
==
NULL
)
return
MCIERR_INVALID_DEVICE_ID
;
if
(
!
(
dwFlags
&
MCI_GETDEVCAPS_ITEM
))
return
MCIERR_MISSING_PARAMETER
;
EnterCriticalSection
(
&
wma
->
cs
);
...
...
@@ -130,14 +131,52 @@ DWORD MCIAVI_mciGetDevCaps(UINT wDevID, DWORD dwFlags, LPMCI_GETDEVCAPS_PARMS l
lpParms
->
dwReturn
=
MAKEMCIRESOURCE
(
FALSE
,
MCI_FALSE
);
ret
=
MCI_RESOURCE_RETURNED
;
break
;
case
MCI_DGV_GETDEVCAPS_CAN_REVERSE
:
TRACE
(
"MCI_DGV_GETDEVCAPS_CAN_REVERSE !
\n
"
);
lpParms
->
dwReturn
=
MAKEMCIRESOURCE
(
FALSE
,
MCI_FALSE
);
/* FIXME */
ret
=
MCI_RESOURCE_RETURNED
;
break
;
case
MCI_DGV_GETDEVCAPS_CAN_STRETCH
:
TRACE
(
"MCI_DGV_GETDEVCAPS_CAN_STRETCH !
\n
"
);
lpParms
->
dwReturn
=
MAKEMCIRESOURCE
(
FALSE
,
MCI_FALSE
);
/* FIXME */
ret
=
MCI_RESOURCE_RETURNED
;
break
;
case
MCI_DGV_GETDEVCAPS_CAN_LOCK
:
TRACE
(
"MCI_DGV_GETDEVCAPS_CAN_LOCK !
\n
"
);
lpParms
->
dwReturn
=
MAKEMCIRESOURCE
(
FALSE
,
MCI_FALSE
);
ret
=
MCI_RESOURCE_RETURNED
;
break
;
case
MCI_DGV_GETDEVCAPS_CAN_FREEZE
:
TRACE
(
"MCI_DGV_GETDEVCAPS_CAN_FREEZE !
\n
"
);
lpParms
->
dwReturn
=
MAKEMCIRESOURCE
(
FALSE
,
MCI_FALSE
);
ret
=
MCI_RESOURCE_RETURNED
;
break
;
case
MCI_DGV_GETDEVCAPS_CAN_STR_IN
:
TRACE
(
"MCI_DGV_GETDEVCAPS_CAN_STRETCH_INPUT !
\n
"
);
lpParms
->
dwReturn
=
MAKEMCIRESOURCE
(
FALSE
,
MCI_FALSE
);
ret
=
MCI_RESOURCE_RETURNED
;
break
;
case
MCI_DGV_GETDEVCAPS_HAS_STILL
:
TRACE
(
"MCI_DGV_GETDEVCAPS_HAS_STILL !
\n
"
);
lpParms
->
dwReturn
=
MAKEMCIRESOURCE
(
FALSE
,
MCI_FALSE
);
ret
=
MCI_RESOURCE_RETURNED
;
break
;
case
MCI_DGV_GETDEVCAPS_CAN_TEST
:
TRACE
(
"MCI_DGV_GETDEVCAPS_CAN_TEST !
\n
"
);
lpParms
->
dwReturn
=
MAKEMCIRESOURCE
(
FALSE
,
MCI_FALSE
);
/* FIXME */
ret
=
MCI_RESOURCE_RETURNED
;
break
;
case
MCI_DGV_GETDEVCAPS_PALETTES
:
TRACE
(
"MCI_DGV_GETDEVCAPS_PALETTES !
\n
"
);
lpParms
->
dwReturn
=
MAKEMCIRESOURCE
(
FALSE
,
MCI_FALSE
);
/* FIXME */
ret
=
MCI_RESOURCE_RETURNED
;
break
;
/* w2k does not know MAX_WINDOWS or MAX/MINIMUM_RATE */
default:
FIXME
(
"Unknown capability (%08x) !
\n
"
,
lpParms
->
dwItem
);
ret
=
MCIERR_UNRECOGNIZED_COMMAND
;
ret
=
MCIERR_UNSUPPORTED_FUNCTION
;
break
;
}
}
else
{
WARN
(
"No GetDevCaps-Item !
\n
"
);
ret
=
MCIERR_UNRECOGNIZED_COMMAND
;
}
LeaveCriticalSection
(
&
wma
->
cs
);
...
...
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