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