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
6b271b6d
Commit
6b271b6d
authored
Sep 01, 2010
by
Jörg Höhle
Committed by
Alexandre Julliard
Sep 03, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm: GetDeviceID only considers a single name per entry.
parent
565c56c6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
7 deletions
+15
-7
mci.c
dlls/winmm/mci.c
+0
-4
mci.c
dlls/winmm/tests/mci.c
+15
-3
No files found.
dlls/winmm/mci.c
View file @
6b271b6d
...
...
@@ -127,10 +127,6 @@ static UINT MCI_GetDriverFromString(LPCWSTR lpstrName)
ret
=
wmd
->
wDeviceID
;
break
;
}
if
(
wmd
->
lpstrDeviceType
&&
strcmpiW
(
wmd
->
lpstrDeviceType
,
lpstrName
)
==
0
)
{
ret
=
wmd
->
wDeviceID
;
break
;
}
}
LeaveCriticalSection
(
&
WINMM_cs
);
...
...
dlls/winmm/tests/mci.c
View file @
6b271b6d
...
...
@@ -565,7 +565,7 @@ static void test_recordWAVE(HWND hwnd)
/* Only the alias is looked up. */
err
=
mciGetDeviceID
(
"waveaudio"
);
todo_wine
ok
(
err
==
0
,
"mciGetDeviceID waveaudio returned %u, expected 0
\n
"
,
err
);
ok
(
err
==
0
,
"mciGetDeviceID waveaudio returned %u, expected 0
\n
"
,
err
);
test_notification
(
hwnd
,
"open new"
,
MCI_NOTIFY_SUCCESSFUL
);
test_notification
(
hwnd
,
"open new no #2"
,
0
);
...
...
@@ -724,6 +724,15 @@ static void test_playWAVE(HWND hwnd)
return
;
}
err
=
mciGetDeviceID
(
"mysound"
);
ok
(
err
==
1
,
"mciGetDeviceID mysound returned %u, expected 1
\n
"
,
err
);
err
=
mciGetDeviceID
(
"tempfile.wav"
);
ok
(
err
==
0
,
"mciGetDeviceID tempfile.wav returned %u, expected 0
\n
"
,
err
);
err
=
mciGetDeviceID
(
"waveaudio"
);
ok
(
err
==
0
,
"mciGetDeviceID waveaudio returned %u, expected 0
\n
"
,
err
);
err
=
mciSendString
(
"status mysound length"
,
buf
,
sizeof
(
buf
),
NULL
);
ok
(
!
err
,
"mci status length returned %s
\n
"
,
dbg_mcierr
(
err
));
todo_wine
ok
(
!
strcmp
(
buf
,
"2000"
),
"mci status length gave %s, expected 2000, some tests will fail.
\n
"
,
buf
);
...
...
@@ -852,10 +861,10 @@ static void test_asyncWAVE(HWND hwnd)
/* Only the alias is looked up. */
err
=
mciGetDeviceID
(
"tempfile.wav"
);
ok
(
err
==
0
,
"mciGetDeviceID
element
returned %u, expected 0
\n
"
,
err
);
ok
(
err
==
0
,
"mciGetDeviceID
tempfile.wav
returned %u, expected 0
\n
"
,
err
);
err
=
mciGetDeviceID
(
"waveaudio"
);
todo_wine
ok
(
err
==
0
,
"mciGetDeviceID waveaudio returned %u, expected 0
\n
"
,
err
);
ok
(
err
==
0
,
"mciGetDeviceID waveaudio returned %u, expected 0
\n
"
,
err
);
err
=
mciSendString
(
"status mysound mode"
,
buf
,
sizeof
(
buf
),
hwnd
);
ok
(
!
err
,
"mci status mode returned %s
\n
"
,
dbg_mcierr
(
err
));
...
...
@@ -1095,6 +1104,9 @@ static void test_AutoOpenWAVE(HWND hwnd)
if
(
!
err
)
ok
(
!
strcmp
(
buf
,
"tempfile.wav"
),
"sysinfo name 1 open: %s
\n
"
,
buf
);
test_notification
(
hwnd
,
"sysinfo name notify
\n
"
,
MCI_NOTIFY_SUCCESSFUL
);
err
=
mciGetDeviceID
(
"tempfile.wav"
);
ok
(
err
==
1
,
"mciGetDeviceID tempfile.wav returned %u, expected 1
\n
"
,
err
);
/* Save the full pathname to the file. */
err
=
mciSendString
(
"info tempfile.wav file"
,
path
,
sizeof
(
path
),
NULL
);
ok
(
!
err
,
"mci info tempfile.wav file returned %s
\n
"
,
dbg_mcierr
(
err
));
...
...
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