https://bugs.winehq.org/show_bug.cgi?id=52592
--- Comment #10 from Rafał Mużyło galtgendo@o2.pl --- ...I'm still being confused by the term 'handle'...
Reading the code again, idea from comment 6 might actually be valid too... One way or another, by your report WAVE_MAPPER needs to be special-cased in (most likely) both of these functions.