Michael Stefaniuc : winmm/tests: Skip tests for MMSYSERR_NODRIVER too.

Alexandre Julliard julliard at winehq.org
Wed Oct 30 13:11:03 CDT 2013


Module: wine
Branch: master
Commit: ff7511cc0a5ffd410991f5563222adf45abc5663
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ff7511cc0a5ffd410991f5563222adf45abc5663

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Tue Oct 29 23:31:04 2013 +0100

winmm/tests: Skip tests for MMSYSERR_NODRIVER too.

---

 dlls/winmm/tests/midi.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/winmm/tests/midi.c b/dlls/winmm/tests/midi.c
index 8fb035a..6438dba 100644
--- a/dlls/winmm/tests/midi.c
+++ b/dlls/winmm/tests/midi.c
@@ -282,7 +282,7 @@ static void test_midiOut_device(UINT udev, HWND hwnd)
         rc = midiOutOpen(&hm, udev, (DWORD_PTR)hwnd, (DWORD_PTR)MYCBINST, CALLBACK_WINDOW);
     else
         rc = midiOutOpen(&hm, udev, (DWORD_PTR)callback_func, (DWORD_PTR)MYCBINST, CALLBACK_FUNCTION);
-    if (rc == MMSYSERR_NOTSUPPORTED)
+    if (rc == MMSYSERR_NOTSUPPORTED || rc == MMSYSERR_NODRIVER)
     {
         skip( "MIDI out not supported\n" );
         return;
@@ -481,7 +481,7 @@ static void test_midiStream(UINT udev, HWND hwnd)
         rc = midiStreamOpen(&hm, &udev, 1, (DWORD_PTR)hwnd, (DWORD_PTR)MYCBINST, CALLBACK_WINDOW);
     else
         rc = midiStreamOpen(&hm, &udev, 1, (DWORD_PTR)callback_func, (DWORD_PTR)MYCBINST, CALLBACK_FUNCTION);
-    if (rc == MMSYSERR_NOTSUPPORTED)
+    if (rc == MMSYSERR_NOTSUPPORTED || rc == MMSYSERR_NODRIVER)
     {
         skip( "MIDI stream not supported\n" );
         return;




More information about the wine-cvs mailing list