Browse Source

* file unlocking fixed as well now :/

git-svn-id: trunk@29631 -
Tomas Hajny 10 years ago
parent
commit
a608070e8d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/fcl-db/src/dbase/dbf_wos2.inc

+ 1 - 1
packages/fcl-db/src/dbase/dbf_wos2.inc

@@ -648,7 +648,7 @@ begin
   TQRecC (FUnlock.Offset).C1 := dwFileOffsetLow;
   TQRecC (FUnlock.Offset).C1 := dwFileOffsetLow;
   TQRecC (FUnlock.Range).C2 := nNumberOfBytesToUnlockHigh;
   TQRecC (FUnlock.Range).C2 := nNumberOfBytesToUnlockHigh;
   TQRecC (FUnlock.Range).C1 := nNumberOfBytesToUnlockLow;
   TQRecC (FUnlock.Range).C1 := nNumberOfBytesToUnlockLow;
-  RC := DosSetFileLocksL (hFile, FLock, FUnlock, 50, 0);
+  RC := DosSetFileLocksL (hFile, FUnlock, FLock, 50, 0);
   if RC <> 0 then
   if RC <> 0 then
    begin
    begin
     LastErr := RC;
     LastErr := RC;