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
6f03b0c0
Commit
6f03b0c0
authored
Jun 25, 2006
by
Eric Pouech
Committed by
Alexandre Julliard
Jun 26, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mci: Fix some mciSendString quirks.
Really check in MCI open string commands if the name we have is a device (and no longer rely on bad heuristics for it).
parent
e9910fee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
mci.c
dlls/winmm/mci.c
+4
-3
No files found.
dlls/winmm/mci.c
View file @
6f03b0c0
...
...
@@ -1285,6 +1285,7 @@ DWORD WINAPI mciSendStringW(LPCWSTR lpstrCommand, LPWSTR lpstrRet,
/* Determine devType from open */
if
(
!
strcmpW
(
verb
,
wszOpen
))
{
LPWSTR
devType
,
tmp
;
WCHAR
buf
[
128
];
/* case dev == 'new' has to be handled */
if
(
!
strcmpW
(
dev
,
wszNew
))
{
...
...
@@ -1310,8 +1311,9 @@ DWORD WINAPI mciSendStringW(LPCWSTR lpstrCommand, LPWSTR lpstrRet,
devType
=
str_dup_upper
(
devType
);
dwFlags
|=
MCI_OPEN_ELEMENT
;
data
[
3
]
=
(
DWORD
)
dev
;
}
else
if
(
strchrW
(
dev
,
'.'
)
==
NULL
)
{
tmp
=
strchrW
(
dev
,
' '
);
}
else
if
(
DRIVER_GetLibName
(
dev
,
wszMci
,
buf
,
sizeof
(
buf
)))
{
/* this is the name of a mci driver's type */
tmp
=
strchrW
(
dev
,
' '
);
if
(
tmp
)
*
tmp
=
'\0'
;
data
[
2
]
=
(
DWORD
)
dev
;
devType
=
str_dup_upper
(
dev
);
...
...
@@ -1326,7 +1328,6 @@ DWORD WINAPI mciSendStringW(LPCWSTR lpstrCommand, LPWSTR lpstrRet,
if
(
tmp
)
*
tmp
=
' '
;
/* dwFlags and data[2] will be correctly set in ParseOpt loop */
}
else
{
WCHAR
buf
[
32
];
if
((
dwRet
=
MCI_GetDevTypeFromFileName
(
dev
,
buf
,
sizeof
(
buf
))))
goto
errCleanUp
;
...
...
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