winmm: Pass valid pointer to waveOutGetCaps, and fix get_preferred_sample_rate signature.