Skip to content

winio: error no more data

Tamar Christina requested to merge Phyx/ghc:winio-fix-more-data-error into master

Hi,

This fixes an issue where we assumed ERROR_NO_MORE_ITEM never returned any data read. This isn't the case and instead of returning 0 we should just return the number of bytes read.

This fixes an edge condition when reading files with large buffers.

Ok for master and GHC 9?

Edited by Tamar Christina

Merge request reports