winmm: Fix the ordinal number for function PlaySound.
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
2a37605ef6
commit
00046b816c
@ -1656,6 +1656,12 @@ static void test_PlaySound(void)
|
|||||||
{
|
{
|
||||||
BOOL br;
|
BOOL br;
|
||||||
char test_file[MAX_PATH], temp[MAX_PATH], *exts;
|
char test_file[MAX_PATH], temp[MAX_PATH], *exts;
|
||||||
|
void *psound_ordinal, *psound_name;
|
||||||
|
HMODULE dll = GetModuleHandleA("winmm.dll");
|
||||||
|
|
||||||
|
psound_name = GetProcAddress(dll, "PlaySound");
|
||||||
|
psound_ordinal = GetProcAddress(dll, (LPCSTR) 2);
|
||||||
|
ok(psound_name == psound_ordinal, "Expected ordinal 2 to be PlaySound function\n");
|
||||||
|
|
||||||
if(waveOutGetNumDevs() == 0) {
|
if(waveOutGetNumDevs() == 0) {
|
||||||
skip("No output devices available\n");
|
skip("No output devices available\n");
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# ordinal exports
|
# ordinal exports
|
||||||
1 stdcall @(ptr long long) PlaySoundA
|
2 stdcall @(ptr long long) PlaySoundA
|
||||||
3 stub @
|
3 stub @
|
||||||
4 stub @
|
4 stub @
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user