mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-04 18:10:26 +02:00
* fix GetAppConfigDir and GetTmpDir for Windows(R)(c)(TM) and WinCE, unify with unix and provide pathdelim at end
git-svn-id: trunk@11529 -
This commit is contained in:
parent
e308297fce
commit
4a54f15b47
@ -1050,10 +1050,10 @@ begin
|
||||
begin
|
||||
if VendorName<>'' then
|
||||
Result:=IncludeTrailingPathDelimiter(Result+VendorName);
|
||||
Result:=Result+ApplicationName;
|
||||
Result:=IncludeTrailingPathDelimiter(Result+ApplicationName);
|
||||
end
|
||||
else
|
||||
Result:=DGetAppConfigDir(Global);
|
||||
Result:=IncludeTrailingPathDelimiter(DGetAppConfigDir(Global));
|
||||
end;
|
||||
|
||||
Function GetAppConfigFile(Global : Boolean; SubDir : Boolean) : String;
|
||||
|
@ -749,10 +749,10 @@ begin
|
||||
begin
|
||||
if VendorName<>'' then
|
||||
Result:=IncludeTrailingPathDelimiter(Result+VendorName);
|
||||
Result:=Result+ApplicationName;
|
||||
Result:=IncludeTrailingPathDelimiter(Result+ApplicationName);
|
||||
end
|
||||
else
|
||||
Result:=DGetAppConfigDir(Global);
|
||||
Result:=IncludeTrailingPathDelimiter(DGetAppConfigDir(Global));
|
||||
end;
|
||||
|
||||
Function GetAppConfigFile(Global : Boolean; SubDir : Boolean) : String;
|
||||
@ -768,6 +768,7 @@ begin
|
||||
SetLength(buf, MAX_PATH);
|
||||
SetLength(buf, GetTempPath(Length(buf) + 1, PWideChar(buf)));
|
||||
Result:=buf;
|
||||
Result := IncludeTrailingPathDelimiter(Result);
|
||||
end;
|
||||
|
||||
{****************************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user