Currently it doesn't work as expected, namely gets stuck on delimiter and caret is moved before the delimiter.
Unnecessary more robust than Windows, which feels like doesn't do any checks at all.
EDIT1: v2: return length in `WB_RIGHT` if its bigger than default return value of 0 on invalid values
EDIT2: v3: don't test `WB_ISDELIMITER` with out of bounds indices, Windows doesn't check them and does out of bounds reads
--
v5: comctl32: Fix PathWordBreakProc.
https://gitlab.winehq.org/wine/wine/-/merge_requests/1977
There is another things that bothers me:
The while loop in parse_wave_form():
- WAVE file chunk order is fmt and then data
- The last fmt or data chunk will "win"; doubt there are any dmusic related WAVE files with duplicate fmt or data chunks.
But for now we can start with the while() loop:
- No clue where those extra chunks are placed
- We don't do anything with the WAV file; we just store it. Though we might run into memory issues with big WAV files.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/2029#note_22349