mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-16 05:26:43 +00:00
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:
parent
085e95cd5e
commit
37c19e7a87
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue