Alexandre Julliard : winmm/tests: Fix a pointer conversion warning on 64-bit.

Alexandre Julliard julliard at winehq.org
Mon Apr 12 09:54:10 CDT 2010


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Apr 12 15:39:32 2010 +0200

winmm/tests: Fix a pointer conversion warning on 64-bit.

---

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

diff --git a/dlls/winmm/tests/midi.c b/dlls/winmm/tests/midi.c
index 3abdb1d..4ceec33 100644
--- a/dlls/winmm/tests/midi.c
+++ b/dlls/winmm/tests/midi.c
@@ -233,7 +233,7 @@ static void test_midiOut_device(UINT udev, HWND hwnd)
 
     /* The W95 ESFM Synthesis device reports NOTENABLED although
      * GetVolume by handle works and music plays. */
-    rc = midiOutGetVolume((HMIDIOUT)udev, &ovolume);
+    rc = midiOutGetVolume(UlongToHandle(udev), &ovolume);
     ok((capsA.dwSupport & MIDICAPS_VOLUME) ? rc==MMSYSERR_NOERROR || broken(rc==MMSYSERR_NOTENABLED) : rc==MMSYSERR_NOTSUPPORTED, "midiOutGetVolume(dev=%d) rc=%s\n", udev, mmsys_error(rc));
 
     /* Tests with midiOutSetvolume show that the midi mapper forwards




More information about the wine-cvs mailing list