Changeset 489 for Common/UDebugLog.pas


Ignore:
Timestamp:
Oct 11, 2016, 4:17:20 PM (8 years ago)
Author:
chronos
Message:
  • Modified: Improvements for running with FPC 3.0 and Lazarus 1.6.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Common/UDebugLog.pas

    r463 r489  
    103103  try
    104104    if ExtractFileDir(FileName) <> '' then
    105       ForceDirectoriesUTF8(ExtractFileDir(FileName));
    106     if FileExistsUTF8(FileName) then LogFile := TFileStream.Create(UTF8Decode(FileName), fmOpenWrite)
     105      ForceDirectories(ExtractFileDir(FileName));
     106    if FileExists(FileName) then LogFile := TFileStream.Create(UTF8Decode(FileName), fmOpenWrite)
    107107      else LogFile := TFileStream.Create(UTF8Decode(FileName), fmCreate);
    108108    LogFile.Seek(0, soFromEnd);
Note: See TracChangeset for help on using the changeset viewer.