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
92e492e2
Commit
92e492e2
authored
Dec 05, 1999
by
Eric Pouech
Committed by
Alexandre Julliard
Dec 05, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed MCI_OPEN command for types like "CDAUDIO!H:".
parent
867c436a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
1 deletion
+23
-1
mci.c
dlls/winmm/mci.c
+23
-1
No files found.
dlls/winmm/mci.c
View file @
92e492e2
...
...
@@ -451,7 +451,10 @@ static DWORD MCI_LoadMciDriver(LPWINE_MM_IDATA iData, LPCSTR _strDevTyp,
hDrv
=
OpenDriverA
(
strDevTyp
,
"mci"
,
(
LPARAM
)
&
modp
);
if
(
!
hDrv
)
{
FIXME
(
"Couldn't load driver for type %s.
\n
"
,
strDevTyp
);
FIXME
(
"Couldn't load driver for type %s.
\n
"
"If you don't have a windows installation accessible from Wine,
\n
"
"you perhaps forgot to create a [mci] section in system.ini
\n
"
,
strDevTyp
);
dwRet
=
MCIERR_DEVICE_NOT_INSTALLED
;
goto
errCleanUp
;
}
...
...
@@ -2035,11 +2038,30 @@ static DWORD MCI_Open(DWORD dwParam, LPMCI_OPEN_PARMSA lpParms)
goto
errCleanUp
;
}
}
else
{
LPSTR
ptr
;
if
(
lpParms
->
lpstrDeviceType
==
NULL
)
{
dwRet
=
MCIERR_NULL_PARAMETER_BLOCK
;
goto
errCleanUp
;
}
strcpy
(
strDevTyp
,
lpParms
->
lpstrDeviceType
);
ptr
=
strchr
(
strDevTyp
,
'!'
);
if
(
ptr
)
{
/* this behavior is not documented in windows. However, since, in
* some occasions, MCI_OPEN handling is translated by WinMM into
* a call to mciSendString("open <type>"); this code shall be correct
*/
if
(
dwParam
&
MCI_OPEN_ELEMENT
)
{
ERR
(
"Both MCI_OPEN_ELEMENT(%s) and %s are used
\n
"
,
lpParms
->
lpstrElementName
,
strDevTyp
);
dwRet
=
MCIERR_UNRECOGNIZED_KEYWORD
;
goto
errCleanUp
;
}
dwParam
|=
MCI_OPEN_ELEMENT
;
*
ptr
++
=
0
;
/* FIXME: not a good idea to write in user supplied buffer */
lpParms
->
lpstrElementName
=
ptr
;
}
}
TRACE
(
"devType='%s' !
\n
"
,
strDevTyp
);
}
...
...
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