Commit 00046b81 authored by Bruno Jesus's avatar Bruno Jesus Committed by Alexandre Julliard

winmm: Fix the ordinal number for function PlaySound.

parent 2a37605e
......@@ -1656,6 +1656,12 @@ static void test_PlaySound(void)
{
BOOL br;
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) {
skip("No output devices available\n");
......
# ordinal exports
1 stdcall @(ptr long long) PlaySoundA
2 stdcall @(ptr long long) PlaySoundA
3 stub @
4 stub @
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment