summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--getc.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/getc.inc b/getc.inc
index 188bea69..6e892dfc 100644
--- a/getc.inc
+++ b/getc.inc
@@ -52,8 +52,8 @@ open_return: ret
getc:
stc ; If we exit here -> EOF
- cmp dword [FBytes],byte 0
- je getc_ret
+ mov ecx,[FBytes]
+ jecxz getc_ret
mov si,[FPtr]
cmp si,[EndOfGetCBuf]
jb getc_loaded