Subversion Repositories fastphp

Compare Revisions

Regard whitespace Rev 44 → Rev 45

/trunk/Functions.pas
16,6 → 16,7
function MyVarToStr(v: Variant): string;
function FileSystemCaseSensitive: boolean;
function HighColorWindows: boolean;
function GetTempDir: string;
 
implementation
 
282,4 → 283,20
((dwMajorVersion = 6) and (dwMinorVersion <= 1));
end;
 
function GetTempDir: string;
var
Dir: string;
Len: DWord;
begin
SetLength(Dir,MAX_PATH);
Len:=GetTempPath(MAX_PATH, PChar(Dir));
if Len>0 then
begin
SetLength(Dir,Len);
Result:=Dir;
end
else
RaiseLastOSError;
end;
 
end.