From 863c57e956fffaef97b8ff5acf581a8e863b1331 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 1 Sep 2023 17:40:21 +0200 Subject: [PATCH] winmm/tests: Fix a pointer truncation issue on 64-bit. --- dlls/winmm/tests/wave.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/winmm/tests/wave.c b/dlls/winmm/tests/wave.c index c0c22bee4d8..608bcaa3118 100644 --- a/dlls/winmm/tests/wave.c +++ b/dlls/winmm/tests/wave.c @@ -687,7 +687,7 @@ static void wave_out_test_deviceOut(int device, double duration, int headers, in "waveOutGetVolume(%s): rc=%s\n",dev_name(device),wave_out_error(rc)); /* waveOutGetDevCaps allows an open handle instead of a device id */ - rc=waveOutGetDevCapsW(HandleToUlong(wout),&capsW,sizeof(capsW)); + rc=waveOutGetDevCapsW((UINT_PTR)wout,&capsW,sizeof(capsW)); ok(rc==MMSYSERR_NOERROR, "waveOutGetDevCapsW(%s): MMSYSERR_NOERROR " "expected, got %s\n",dev_name(device),wave_out_error(rc));