Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
594a70f5
Commit
594a70f5
authored
May 19, 2010
by
Jörg Höhle
Committed by
Alexandre Julliard
May 20, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm: Have MCI drivers handle notification for MCI_OPEN.
All notifications are handled locally by the drivers.
parent
efe1c945
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
11 deletions
+24
-11
mciavi.c
dlls/mciavi32/mciavi.c
+5
-0
mcicda.c
dlls/mcicda/mcicda.c
+9
-2
mciqtz.c
dlls/mciqtz32/mciqtz.c
+3
-0
mcimidi.c
dlls/mciseq/mcimidi.c
+5
-0
mci.c
dlls/winmm/mci.c
+1
-7
mci.c
dlls/winmm/tests/mci.c
+1
-2
No files found.
dlls/mciavi32/mciavi.c
View file @
594a70f5
...
...
@@ -286,6 +286,11 @@ static DWORD MCIAVI_mciOpen(UINT wDevID, DWORD dwFlags,
}
LeaveCriticalSection
(
&
wma
->
cs
);
if
(
!
dwRet
&&
(
dwFlags
&
MCI_NOTIFY
))
{
mciDriverNotify
(
HWND_32
(
LOWORD
(
lpOpenParms
->
dwCallback
)),
wDevID
,
MCI_NOTIFY_SUCCESSFUL
);
}
return
dwRet
;
}
...
...
dlls/mcicda/mcicda.c
View file @
594a70f5
...
...
@@ -464,8 +464,15 @@ static DWORD MCICDA_Open(UINT wDevID, DWORD dwFlags, LPMCI_OPEN_PARMSW lpOpenPar
/* now, open the handle */
root
[
0
]
=
root
[
1
]
=
'\\'
;
root
[
2
]
=
'.'
;
root
[
3
]
=
'\\'
;
root
[
4
]
=
drive
;
root
[
5
]
=
':'
;
root
[
6
]
=
'\0'
;
wmcda
->
handle
=
CreateFileW
(
root
,
GENERIC_READ
,
FILE_SHARE_READ
,
NULL
,
OPEN_EXISTING
,
0
,
0
);
if
(
wmcda
->
handle
!=
INVALID_HANDLE_VALUE
)
return
0
;
if
(
wmcda
->
handle
==
INVALID_HANDLE_VALUE
)
goto
the_error
;
if
(
dwFlags
&
MCI_NOTIFY
)
{
TRACE
(
"MCI_NOTIFY_SUCCESSFUL %08lX !
\n
"
,
lpOpenParms
->
dwCallback
);
mciDriverNotify
(
HWND_32
(
LOWORD
(
lpOpenParms
->
dwCallback
)),
wmcda
->
wNotifyDeviceID
,
MCI_NOTIFY_SUCCESSFUL
);
}
return
0
;
the_error:
--
wmcda
->
nUseCount
;
...
...
dlls/mciqtz32/mciqtz.c
View file @
594a70f5
...
...
@@ -221,6 +221,9 @@ static DWORD MCIQTZ_mciOpen(UINT wDevID, DWORD dwFlags,
wma
->
opened
=
TRUE
;
if
(
dwFlags
&
MCI_NOTIFY
)
mciDriverNotify
(
HWND_32
(
LOWORD
(
lpOpenParms
->
dwCallback
)),
wDevID
,
MCI_NOTIFY_SUCCESSFUL
);
return
0
;
err:
...
...
dlls/mciseq/mcimidi.c
View file @
594a70f5
...
...
@@ -799,6 +799,11 @@ static DWORD MIDI_mciOpen(UINT wDevID, DWORD dwFlags, LPMCI_OPEN_PARMSW lpParms)
}
else
{
wmm
->
dwPositionMS
=
0
;
wmm
->
dwStatus
=
MCI_MODE_STOP
;
if
(
dwFlags
&
MCI_NOTIFY
)
{
TRACE
(
"MCI_NOTIFY_SUCCESSFUL %08lX !
\n
"
,
lpParms
->
dwCallback
);
mciDriverNotify
(
HWND_32
(
LOWORD
(
lpParms
->
dwCallback
)),
wmm
->
wNotifyDeviceID
,
MCI_NOTIFY_SUCCESSFUL
);
}
}
return
dwRet
;
}
...
...
dlls/winmm/mci.c
View file @
594a70f5
...
...
@@ -1660,16 +1660,10 @@ static DWORD MCI_Open(DWORD dwParam, LPMCI_OPEN_PARMSW lpParms)
/* only handled devices fall through */
TRACE
(
"wDevID=%04X wDeviceID=%d dwRet=%d
\n
"
,
wmd
->
wDeviceID
,
lpParms
->
wDeviceID
,
dwRet
);
if
(
dwParam
&
MCI_NOTIFY
)
mciDriverNotify
((
HWND
)
lpParms
->
dwCallback
,
wmd
->
wDeviceID
,
MCI_NOTIFY_SUCCESSFUL
);
return
0
;
errCleanUp:
if
(
wmd
)
MCI_UnLoadMciDriver
(
wmd
);
if
(
dwParam
&
MCI_NOTIFY
)
mciDriverNotify
((
HWND
)
lpParms
->
dwCallback
,
0
,
MCI_NOTIFY_FAILURE
);
return
dwRet
;
}
...
...
dlls/winmm/tests/mci.c
View file @
594a70f5
...
...
@@ -359,9 +359,8 @@ static void test_recordWAVE(HWND hwnd)
err
=
mciGetDeviceID
(
"waveaudio"
);
todo_wine
ok
(
err
==
0
,
"mciGetDeviceID waveaudio returned %u, expected 0
\n
"
,
err
);
/* In Wine, both MCI_Open and the individual drivers send notifications. */
test_notification
(
hwnd
,
"open new"
,
MCI_NOTIFY_SUCCESSFUL
);
t
odo_wine
t
est_notification
(
hwnd
,
"open new no #2"
,
0
);
test_notification
(
hwnd
,
"open new no #2"
,
0
);
/* Do not query time format as string because result depends on locale! */
parm
.
status
.
dwItem
=
MCI_STATUS_TIME_FORMAT
;
...
...
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