mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 19:39:18 +02:00
use DirPathExists instead of DirectoryExists, because DirectoryExists('c:\') returns false.
git-svn-id: trunk@7668 -
This commit is contained in:
parent
2050a2f6ab
commit
73a0c7cd88
@ -29,7 +29,7 @@ unit LCLProc;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, SysUtils, Math, FPCAdds, LCLStrConsts, LCLType;
|
Classes, SysUtils, Math, FPCAdds, FileUtil, LCLStrConsts, LCLType;
|
||||||
|
|
||||||
type
|
type
|
||||||
{ TMethodList - array of TMethod }
|
{ TMethodList - array of TMethod }
|
||||||
@ -239,6 +239,7 @@ function NtoLE(const AValue: QWord): QWord;
|
|||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
|
|
||||||
var
|
var
|
||||||
InterfaceFinalizationHandlers: TFPList;
|
InterfaceFinalizationHandlers: TFPList;
|
||||||
DebugTextAlloced: boolean;
|
DebugTextAlloced: boolean;
|
||||||
@ -851,7 +852,7 @@ var
|
|||||||
begin
|
begin
|
||||||
DebugFileName := GetDebugFileName;
|
DebugFileName := GetDebugFileName;
|
||||||
if (length(DebugFileName)>0) and
|
if (length(DebugFileName)>0) and
|
||||||
(DirectoryExists(ExtractFileDir(DebugFileName))) then begin
|
(DirPathExists(ExtractFileDir(DebugFileName))) then begin
|
||||||
|
|
||||||
new(DebugText);
|
new(DebugText);
|
||||||
DebugTextAlloced := true;
|
DebugTextAlloced := true;
|
||||||
|
Loading…
Reference in New Issue
Block a user