On Sat Jan 21 12:47:16 2023 +0000, Vladislav Timonin wrote:
changed this line in [version 5 of the diff](/wine/wine/-/merge_requests/1977/diffs?diff_id=28401&start_sha=611559fad649b70a9b9bea6fc2efa95a11cc41fa#d6979212dd411a0b880faf30a245da27a8b0f425_1659_1656)
Hm, yeah, doesn't seem to be stopping on NULL characters on Windows, removed it.
Initially I removed `ichCurrent < cch` because it would fail the test with negative `cch` (namely `word_break_proc(some_pathW + 1, 0, -1, WB_RIGHT)`), but looks like it also broke the tests above it (`word_break_proc(some_pathW + 5, 0, 0, WB_RIGHT)` with `cch` from 0 to 3).
Which leads to me to think that if `cch` is negative it might be recalculated somehow.