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
4ed308f4
Commit
4ed308f4
authored
Nov 18, 2009
by
Jörg Höhle
Committed by
Alexandre Julliard
Apr 01, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm: Improve MCI's Sysinfo string command.
parent
f70b2f54
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
mci.c
dlls/winmm/mci.c
+15
-0
No files found.
dlls/winmm/mci.c
View file @
4ed308f4
...
...
@@ -1233,6 +1233,7 @@ DWORD WINAPI mciSendStringW(LPCWSTR lpstrCommand, LPWSTR lpstrRet,
static
const
WCHAR
wszNew
[]
=
{
'n'
,
'e'
,
'w'
,
0
};
static
const
WCHAR
wszSAliasS
[]
=
{
' '
,
'a'
,
'l'
,
'i'
,
'a'
,
's'
,
' '
,
0
};
static
const
WCHAR
wszTypeS
[]
=
{
't'
,
'y'
,
'p'
,
'e'
,
' '
,
0
};
static
const
WCHAR
wszSysinfo
[]
=
{
's'
,
'y'
,
's'
,
'i'
,
'n'
,
'f'
,
'o'
,
0
};
TRACE
(
"(%s, %p, %d, %p)
\n
"
,
debugstr_w
(
lpstrCommand
),
lpstrRet
,
uRetLen
,
hwndCallback
);
...
...
@@ -1326,6 +1327,20 @@ DWORD WINAPI mciSendStringW(LPCWSTR lpstrCommand, LPWSTR lpstrRet,
MCI_UnLoadMciDriver
(
wmd
);
goto
errCleanUp
;
}
}
else
if
(
!
strcmpW
(
verb
,
wszSysinfo
))
{
/* System commands are not subject to auto-open. */
/* It's too early to handle Sysinfo here because the
* requirements on dev depend on the flags:
* alias with INSTALLNAME, name like "waveaudio"
* with QUANTITY and NAME. */
data
[
4
]
=
MCI_ALL_DEVICE_ID
;
if
(
MCI_ALL_DEVICE_ID
!=
uDevID
)
{
/* FIXME: Map device name like waveaudio to MCI_DEVTYPE_xyz */
uDevID
=
mciGetDeviceIDW
(
dev
);
wmd
=
MCI_GetDriver
(
uDevID
);
if
(
wmd
)
data
[
4
]
=
wmd
->
wType
;
}
}
else
if
((
MCI_ALL_DEVICE_ID
!=
uDevID
)
&&
!
(
wmd
=
MCI_GetDriver
(
mciGetDeviceIDW
(
dev
))))
{
/* auto open */
static
const
WCHAR
wszOpenWait
[]
=
{
'o'
,
'p'
,
'e'
,
'n'
,
' '
,
'%'
,
's'
,
' '
,
'w'
,
'a'
,
'i'
,
't'
,
0
};
...
...
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