Ignore:
Timestamp:
Aug 11, 2000, 12:56:27 PM (25 years ago)
Author:
sandervl
Message:

Updates for fake system dll headers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/oslibdos.cpp

    r3976 r3993  
    1 /* $Id: oslibdos.cpp,v 1.36 2000-08-10 02:19:58 phaller Exp $ */
     1/* $Id: oslibdos.cpp,v 1.37 2000-08-11 10:56:17 sandervl Exp $ */
    22/*
    33 * Wrappers for OS/2 Dos* API
     
    930930        rc = OdinDosSetFileLocksL(hFile, NULL, &lockRangeL,
    931931                                  (dwFlags & LOCKFILE_FAIL_IMMEDIATELY_W) ? 0 : 5000, 0);
     932        //SvL: 64 bits values are only supported by JFS
     933        //     Try the 32 bits DosSetFileLocks if it fails
     934        //     (TODO: should check the partition type instead)
     935        if(rc == ERROR_INVALID_PARAMETER && (OffsetHigh || nNumberOfBytesToLockHigh)) {
     936                goto oldlock;
     937        }
    932938   }
    933939   else
    934940   {
     941oldlock:
    935942    FILELOCK lockRange = { OffsetLow, nNumberOfBytesToLockLow };
    936943
     
    969976
    970977        rc = OdinDosSetFileLocksL(hFile, &unlockRangeL, NULL, 5000, 0);
     978        //SvL: 64 bits values are only supported by JFS
     979        //     Try the 32 bits DosSetFileLocks if it fails
     980        //     (TODO: should check the partition type instead)
     981        if(rc == ERROR_INVALID_PARAMETER && (OffsetHigh || nNumberOfBytesToLockHigh)) {
     982                goto oldlock;
     983        }
    971984   }
    972985   else
    973986   {
     987oldlock:
    974988    FILELOCK unlockRange = { OffsetLow, nNumberOfBytesToLockLow };
    975989
Note: See TracChangeset for help on using the changeset viewer.