http://bugs.winehq.org/show_bug.cgi?id=33032
--- Comment #3 from Andrew Eikum aeikum@codeweavers.com 2013-03-04 11:42:13 CST --- I wonder why I decided to implement it the way I did.
The DRVM_MAPPER_PREFERRED_GET docs say that (rc == MMSYSERR_NOERROR && preferred == -1) is for when "no device is available that qualifies as a preferred device." http://msdn.microsoft.com/en-us/library/aa909815.aspx
This is how Wine behaves when there are no devices at all. Windows seems to return these other error codes.
Anyway, Wine's current behavior seems fine for real applications, so I don't plan to change it. I'll send that patch off with a reference to this bug.