On Wed Feb 5 15:45:59 2025 +0000, Yuxuan Shui wrote:
Hi, this was specifically done this way because Windows implementation doesn't validate NumTracks. This was raised also back when the midi patch series was first proposed.
OK, no surprises there...
With that my question from the other thread remains important: Also what should happen for an E_FAIL during the `i == 0` case? Aka no track read? Should that be still ignored?\ Just trying to avoid a crash later on. If the code later on can deal with the "0 tracks read" case then all is good.