Browse Source

* handle zero length strings correctly in DebugWrite/DebugWriteLn

git-svn-id: trunk@27459 -
nickysn 11 years ago
parent
commit
34e8e5a0dc
1 changed files with 2 additions and 0 deletions
  1. 2 0
      rtl/msdos/system.pp

+ 2 - 0
rtl/msdos/system.pp

@@ -140,6 +140,7 @@ begin
     lodsb
     mov cl, al
     xor ch, ch
+    jcxz @@zero_length
     mov ah, 2
 
 @@1:
@@ -147,6 +148,7 @@ begin
     mov dl, al
     int 21h
     loop @@1
+@@zero_length:
 {$if defined(FPC_X86_DATA_FAR) or defined(FPC_X86_DATA_HUGE)}
     pop ds
 {$endif}