Changeset 766 for trunk/dll/valid.c


Ignore:
Timestamp:
Aug 5, 2007, 8:21:20 PM (13 years ago)
Author:
Gregg Young
Message:

format cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/valid.c

    r697 r766  
    450450  Status = DosQCurDisk(&ulDriveNum, &ulDriveMap);
    451451  if (!Status) {
    452     if (!(ulDriveMap & (1L << (ULONG) (toupper(drive) - 'A'))))
     452    if (!(ulDriveMap & (1 << (ULONG) (toupper(drive) - 'A'))))
    453453      return FALSE;
    454454    Path[0] = toupper(drive);
     
    688688  DosQCurDisk(&ulDriveNum, &ulDriveMap);
    689689  for (x = 0; x < 26; x++) {
    690     if (ulDriveMap & (1L << x) && !(driveflags[x] & DRIVE_IGNORE)) {
     690    if (ulDriveMap & (1 << x) && !(driveflags[x] & DRIVE_IGNORE)) {
    691691      {
    692692        CHAR s[80];
     
    710710      }
    711711    }
    712     else if (!(ulDriveMap & (1L << x)))
     712    else if (!(ulDriveMap & (1 << x)))
    713713      driveflags[x] |= DRIVE_INVALID;
    714714  }
     
    850850BOOL IsBinary(register CHAR * str, ULONG len)
    851851{
    852   register ULONG x = 0L;
     852  register ULONG x = 0;
    853853
    854854  if (str) {
     
    873873
    874874  if (filename) {
    875     if (!DosOpen(filename, &handle, &ulAction, 0L, 0L,
     875    if (!DosOpen(filename, &handle, &ulAction, 0, 0,
    876876                 OPEN_ACTION_FAIL_IF_NEW | OPEN_ACTION_OPEN_IF_EXISTS,
    877877                 OPEN_FLAGS_FAIL_ON_ERROR | OPEN_FLAGS_NOINHERIT |
    878878                 OPEN_FLAGS_SEQUENTIAL | OPEN_SHARE_DENYNONE |
    879                  OPEN_ACCESS_READONLY, 0L)) {
     879                 OPEN_ACCESS_READONLY, 0)) {
    880880      len = 512;
    881881      rc = DosRead(handle, buff, len, &len);
     
    898898  HMODULE hmod = 0;
    899899  APIRET rc;
    900   ULONG startdrive = 3L;
     900  ULONG startdrive = 3;
    901901  CHAR objerr[CCHMAXPATH];
    902902
Note: See TracChangeset for help on using the changeset viewer.