|
@@ -42,7 +42,7 @@ implementation
|
|
|
|
|
|
Function FileOpen (Const FileName : string; Mode : Integer) : Longint;
|
|
Function FileOpen (Const FileName : string; Mode : Integer) : Longint;
|
|
const
|
|
const
|
|
- AccessMode: array[0..2] of Integer = (
|
|
|
|
|
|
+ AccessMode: array[0..2] of Cardinal = (
|
|
GENERIC_READ,
|
|
GENERIC_READ,
|
|
GENERIC_WRITE,
|
|
GENERIC_WRITE,
|
|
GENERIC_READ or GENERIC_WRITE);
|
|
GENERIC_READ or GENERIC_WRITE);
|
|
@@ -94,7 +94,7 @@ end;
|
|
|
|
|
|
Function FileSeek (Handle,FOffset,Origin : Longint) : Longint;
|
|
Function FileSeek (Handle,FOffset,Origin : Longint) : Longint;
|
|
begin
|
|
begin
|
|
- Result := SetFilePointer(Handle, FOffset, nil, Origin);
|
|
|
|
|
|
+ Result := longint(SetFilePointer(Handle, FOffset, nil, Origin));
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
|
|
@@ -108,7 +108,7 @@ end;
|
|
|
|
|
|
Function FileTruncate (Handle,Size: Longint) : boolean;
|
|
Function FileTruncate (Handle,Size: Longint) : boolean;
|
|
begin
|
|
begin
|
|
- Result:=SetFilePointer(handle,Size,nil,FILE_BEGIN)<>-1;
|
|
|
|
|
|
+ Result:=longint(SetFilePointer(handle,Size,nil,FILE_BEGIN))<>-1;
|
|
If Result then
|
|
If Result then
|
|
Result:=SetEndOfFile(handle);
|
|
Result:=SetEndOfFile(handle);
|
|
end;
|
|
end;
|
|
@@ -163,7 +163,7 @@ end;
|
|
Function FindMatch(var f: TSearchRec) : Longint;
|
|
Function FindMatch(var f: TSearchRec) : Longint;
|
|
begin
|
|
begin
|
|
{ Find file with correct attribute }
|
|
{ Find file with correct attribute }
|
|
- While (F.FindData.dwFileAttributes and F.ExcludeAttr)<>0 do
|
|
|
|
|
|
+ While (F.FindData.dwFileAttributes and cardinal(F.ExcludeAttr))<>0 do
|
|
begin
|
|
begin
|
|
if not FindNextFile (F.FindHandle,@F.FindData) then
|
|
if not FindNextFile (F.FindHandle,@F.FindData) then
|
|
begin
|
|
begin
|
|
@@ -643,7 +643,10 @@ Finalization
|
|
end.
|
|
end.
|
|
{
|
|
{
|
|
$Log$
|
|
$Log$
|
|
- Revision 1.4 2000-09-19 23:57:57 pierre
|
|
|
|
|
|
+ Revision 1.5 2000-12-18 17:28:58 jonas
|
|
|
|
+ * fixed range check errors
|
|
|
|
+
|
|
|
|
+ Revision 1.4 2000/09/19 23:57:57 pierre
|
|
* bug fix for 1041 (merged)
|
|
* bug fix for 1041 (merged)
|
|
|
|
|
|
Revision 1.3 2000/08/29 18:01:52 michael
|
|
Revision 1.3 2000/08/29 18:01:52 michael
|