winmm/tests: Avoid truncating the handle passed to waveInGetDevCapsW().

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55240
This commit is contained in:
Hans Leidekker 2023-09-19 16:56:17 +02:00 committed by Alexandre Julliard
parent 085e95cd5e
commit 37c19e7a87

View file

@ -176,7 +176,7 @@ static void wave_in_test_deviceIn(int device, WAVEFORMATEX *pwfx, DWORD format,
pwfx->nChannels, nSamplesPerSec, wBitsPerSample, nChannels);
/* waveInGetDevCaps allows an open handle instead of a device id */
rc=waveInGetDevCapsW(HandleToUlong(win),&capsW,sizeof(capsW));
rc=waveInGetDevCapsW((UINT_PTR)win,&capsW,sizeof(capsW));
ok(rc==MMSYSERR_NOERROR,
"waveInGetDevCapsW(%s): MMSYSERR_NOERROR "
"expected, got %s\n",dev_name(device),wave_in_error(rc));