larsbrinkhoff / lbForth

Self-hosting metacompiled Forth, bootstrapping from a few lines of C; targets Linux, Windows, ARM, RISC-V, 68000, PDP-11, asm.js.
GNU General Public License v3.0
418 stars 112 forks source link

Windows READ-FILE should return 0 0 on EOF #21

Closed larsbrinkhoff closed 7 years ago

larsbrinkhoff commented 8 years ago

When ReadFile returns error, check GetLastError for ERROR_HANDLE_EOF.

Then change KEY to call ABORT instead of BYE on errors.