[PATCH v3] winmm: Don't crash in waveOutOpen when nSamplesPerSec is 0 and add tests