Ver Fonte

* Better length check

Michaël Van Canneyt há 2 anos atrás
pai
commit
8af6fdefa8
1 ficheiros alterados com 5 adições e 2 exclusões
  1. 5 2
      rtl/inc/exeinfo.pp

+ 5 - 2
rtl/inc/exeinfo.pp

@@ -84,8 +84,11 @@ var
 
 begin
   ReadDebugLink:=ReadDebugLink(e,fn);
-  if ReadDebugLink and (length(fn)<256) then
-    dbgfn:=fn;
+  if ReadDebugLink then
+    if (length(fn)<256) then
+      dbgfn:=fn
+    else
+      ReadDebugLink:=False;
 end;