mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-06 15:50:30 +02:00
* file locking API call updated according to changes in unit doscall2
git-svn-id: trunk@29018 -
This commit is contained in:
parent
f330d2e981
commit
a3e9954d73
@ -173,7 +173,7 @@ begin
|
||||
TQRecC (FLock.Offset).C1 := dwFileOffsetLow;
|
||||
TQRecC (FLock.Range).C2 := nNumberOfBytesToLockHigh;
|
||||
TQRecC (FLock.Range).C1 := nNumberOfBytesToLockLow;
|
||||
RC := Sys_DosSetFileLocksL (hFile, FLock, FUnlock, 50, 0);
|
||||
RC := DosSetFileLocksL (hFile, FLock, FUnlock, 50, 0);
|
||||
if RC <> 0 then
|
||||
begin
|
||||
LastErr := RC;
|
||||
@ -194,7 +194,7 @@ begin
|
||||
TQRecC (FUnlock.Offset).C1 := dwFileOffsetLow;
|
||||
TQRecC (FUnlock.Range).C2 := nNumberOfBytesToUnlockHigh;
|
||||
TQRecC (FUnlock.Range).C1 := nNumberOfBytesToUnlockLow;
|
||||
RC := Sys_DosSetFileLocksL (hFile, FLock, FUnlock, 50, 0);
|
||||
RC := DosSetFileLocksL (hFile, FLock, FUnlock, 50, 0);
|
||||
if RC <> 0 then
|
||||
begin
|
||||
LastErr := RC;
|
||||
|
Loading…
Reference in New Issue
Block a user