Explorar o código

* use SystemFileName instead of the original FileName in DeleteFile()

git-svn-id: trunk@26365 -
Jonas Maebe %!s(int64=11) %!d(string=hai) anos
pai
achega
b106ded0e9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      rtl/os2/sysutils.pp

+ 1 - 1
rtl/os2/sysutils.pp

@@ -367,7 +367,7 @@ var
   SystemFileName: RawByteString;
 Begin
   SystemFileName:=ToSingleByteFileSystemEncodedFileName(Filename);
-  Result:=(DosDelete(PChar (FileName))=0);
+  Result:=(DosDelete(PChar (SystemFileName))=0);
 End;
 
 function RenameFile (const OldName, NewName: RawByteString): boolean;