summaryrefslogtreecommitdiff
path: root/UConfig.pas
diff options
context:
space:
mode:
Diffstat (limited to 'UConfig.pas')
-rw-r--r--UConfig.pas8
1 files changed, 4 insertions, 4 deletions
diff --git a/UConfig.pas b/UConfig.pas
index 1244f21..d3652a5 100644
--- a/UConfig.pas
+++ b/UConfig.pas
@@ -708,7 +708,7 @@ begin
Exit;
end;
s := IncludeTrailingPathDelimiter(s) + 'filetypes';
- if access(PChar(s), R_OK) = 0 then libc_remove(PChar(s));
+ libc_remove(PChar(s));
IniFile := TMyIniFile.Create(s, False);
try try
@@ -840,7 +840,7 @@ begin
Exit;
end;
s := IncludeTrailingPathDelimiter(s) + 'mounter';
- if access(PChar(s), R_OK) = 0 then libc_remove(PChar(s));
+ libc_remove(PChar(s));
IniFile := TMyIniFile.Create(s, False);
try try
@@ -1030,7 +1030,7 @@ begin
Exit;
end;
s := IncludeTrailingPathDelimiter(s) + 'connmgr';
- if access(PChar(s), R_OK) = 0 then libc_remove(PChar(s));
+ libc_remove(PChar(s));
IniFile := TMyIniFile.Create(s, False);
try try
@@ -1110,7 +1110,7 @@ function GetFileTime(FileName: string): time_t;
var StatBuf: Pstat64;
begin
Result := -1;
- StatBuf := malloc(sizeof(Tstat64));
+ StatBuf := libc_malloc(sizeof(Tstat64));
memset(StatBuf, 0, sizeof(Tstat64));
if lstat64(PChar(FileName), StatBuf) = 0 then Result := StatBuf^.st_mtime;
libc_free(StatBuf);