When a custom ByteOffset is specified in NtReadFile, the file pointer should be updated to that.
It seems I didn't take that into account in the original redirector; and p4gpc.modloader missed it too.
I noticed this bug because I'm working on the universal framework for archive emulation; so get to look over my old code.
At lines like this one, effoffset should be used.
When a custom ByteOffset is specified in
NtReadFile
, the file pointer should be updated to that. It seems I didn't take that into account in the original redirector; and p4gpc.modloader missed it too.I noticed this bug because I'm working on the universal framework for archive emulation; so get to look over my old code. At lines like this one, effoffset should be used.