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
b84576fc
Commit
b84576fc
authored
Mar 28, 2010
by
Jörg Höhle
Committed by
Alexandre Julliard
Apr 12, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm: MCI system commands are not eligible for auto-open.
parent
e9f52046
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
mci.c
dlls/winmm/mci.c
+9
-7
No files found.
dlls/winmm/mci.c
View file @
b84576fc
...
...
@@ -1234,6 +1234,8 @@ DWORD WINAPI mciSendStringW(LPCWSTR lpstrCommand, LPWSTR lpstrRet,
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
};
static
const
WCHAR
wszSound
[]
=
{
's'
,
'o'
,
'u'
,
'n'
,
'd'
,
0
};
static
const
WCHAR
wszBreak
[]
=
{
'b'
,
'r'
,
'e'
,
'a'
,
'k'
,
0
};
TRACE
(
"(%s, %p, %d, %p)
\n
"
,
debugstr_w
(
lpstrCommand
),
lpstrRet
,
uRetLen
,
hwndCallback
);
...
...
@@ -1341,6 +1343,8 @@ DWORD WINAPI mciSendStringW(LPCWSTR lpstrCommand, LPWSTR lpstrRet,
if
(
wmd
)
data
[
4
]
=
wmd
->
wType
;
}
}
else
if
(
!
strcmpW
(
verb
,
wszSound
)
||
!
strcmpW
(
verb
,
wszBreak
))
{
/* Prevent auto-open for system commands. */
}
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
};
...
...
@@ -1882,11 +1886,10 @@ static DWORD MCI_Break(UINT wDevID, DWORD dwFlags, LPMCI_BREAK_PARMS lpParms)
DWORD
dwRet
=
0
;
if
(
lpParms
==
NULL
)
return
MCIERR_NULL_PARAMETER_BLOCK
;
FIXME
(
"(%04x) vkey %04X stub
\n
"
,
dwFlags
,
lpParms
->
nVirtKey
);
if
(
dwFlags
&
MCI_NOTIFY
)
mciDriverNotify
((
HWND
)
lpParms
->
dwCallback
,
wDevID
,
(
dwRet
==
0
)
?
MCI_NOTIFY_SUCCESSFUL
:
MCI_NOTIFY_FAILURE
);
if
(
MMSYSERR_NOERROR
==
dwRet
&&
(
dwFlags
&
MCI_NOTIFY
))
mciDriverNotify
((
HWND
)
lpParms
->
dwCallback
,
wDevID
,
MCI_NOTIFY_SUCCESSFUL
);
return
dwRet
;
}
...
...
@@ -1903,10 +1906,9 @@ static DWORD MCI_Sound(UINT wDevID, DWORD dwFlags, LPMCI_SOUND_PARMSW lpParms)
dwRet
=
sndPlaySoundW
(
lpParms
->
lpstrSoundName
,
SND_SYNC
)
?
MMSYSERR_NOERROR
:
MMSYSERR_ERROR
;
else
dwRet
=
MMSYSERR_ERROR
;
/* what should be done ??? */
if
(
dwFlags
&
MCI_NOTIFY
)
mciDriverNotify
((
HWND
)
lpParms
->
dwCallback
,
wDevID
,
(
dwRet
==
0
)
?
MCI_NOTIFY_SUCCESSFUL
:
MCI_NOTIFY_FAILURE
);
if
(
MMSYSERR_NOERROR
==
dwRet
&&
(
dwFlags
&
MCI_NOTIFY
))
mciDriverNotify
((
HWND
)
lpParms
->
dwCallback
,
wDevID
,
MCI_NOTIFY_SUCCESSFUL
);
return
dwRet
;
}
...
...
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