kellyethridge / VBCorLib

The VBCorLib framework brings many of the powerful .NET classes to VB6.
http://www.kellyethridge.com/vbcorlib/
MIT License
112 stars 28 forks source link

BinaryReader.ReadChar does not correctly check for no chars #104

Closed kellyethridge closed 2 years ago

kellyethridge commented 2 years ago

The code should be checking the result of the character read to determine if no characters remain. Instead, it's reading the method name which is never set until the end of the method. This means if there are no more characters, the method will not be able to correctly determine that.