mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-07 15:50:36 +02:00
* Implemented GetTempDir for wince. Bug #9348.
git-svn-id: trunk@8326 -
This commit is contained in:
parent
1159ee9744
commit
a768c29b2d
@ -28,6 +28,7 @@ uses
|
||||
{$DEFINE HAS_SLEEP}
|
||||
{$DEFINE HAS_OSERROR}
|
||||
{$DEFINE HAS_OSCONFIG}
|
||||
{$DEFINE HAS_TEMPDIR}
|
||||
|
||||
{ Include platform independent interface part }
|
||||
{$i sysutilh.inc}
|
||||
@ -789,6 +790,15 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
Function GetTempDir(Global : Boolean) : String;
|
||||
var
|
||||
buf: widestring;
|
||||
begin
|
||||
SetLength(buf, MAX_PATH);
|
||||
SetLength(buf, GetTempPath(Length(buf) + 1, PWideChar(buf)));
|
||||
Result:=buf;
|
||||
end;
|
||||
|
||||
{****************************************************************************
|
||||
Target Dependent WideString stuff
|
||||
****************************************************************************}
|
||||
|
Loading…
Reference in New Issue
Block a user