Browse Source

* the filerec.name field is 0-based, not 1-based -> to check for an empty
file name, check character 0

git-svn-id: branches/cpstrrtl@25136 -

Jonas Maebe 12 years ago
parent
commit
d676bbf9af
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rtl/wince/dos.pp

+ 1 - 1
rtl/wince/dos.pp

@@ -486,7 +486,7 @@ var
   l : cardinal;
   buf: array[0..MaxPathLen] of WideChar;
 begin
-  if filerec(f).name[1] = #0 then
+  if filerec(f).name[0] = #0 then
     begin
       doserror:=3;
       attr:=0;