diff --git a/reactos/dll/win32/wdmaud.drv/wdmaud.c b/reactos/dll/win32/wdmaud.drv/wdmaud.c index bb3f38660cc..e85dadbe686 100644 --- a/reactos/dll/win32/wdmaud.drv/wdmaud.c +++ b/reactos/dll/win32/wdmaud.drv/wdmaud.c @@ -344,7 +344,7 @@ PopulateWdmDeviceList( for ( i = 0; i < DeviceCount; ++ i ) { - Result = ListSoundDevice(DeviceType, (PVOID) i, &SoundDevice); + Result = ListSoundDevice(DeviceType, UlongToPtr(i), &SoundDevice); if ( ! MMSUCCESS(Result) ) {