summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhpa <hpa>2002-10-24 22:11:46 +0000
committerhpa <hpa>2002-10-24 22:11:46 +0000
commitc364864bfaba66801cf98d4b2e511678f5f8f585 (patch)
tree5d413bf737b2c961d94ef566cc94a98ec83a7bfc
parent7f4a1600395a55a215beb85f06d5f0986e814133 (diff)
downloadsyslinux-c364864bfaba66801cf98d4b2e511678f5f8f585.tar.gz
Fix command-line parsing bug... destroyed the flags while live... oops.syslinux-2.00-pre13
-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