Changeset 766 for trunk/dll/valid.c
- Timestamp:
- Aug 5, 2007, 10:21:20 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/valid.c
r697 r766 450 450 Status = DosQCurDisk(&ulDriveNum, &ulDriveMap); 451 451 if (!Status) { 452 if (!(ulDriveMap & (1 L<< (ULONG) (toupper(drive) - 'A'))))452 if (!(ulDriveMap & (1 << (ULONG) (toupper(drive) - 'A')))) 453 453 return FALSE; 454 454 Path[0] = toupper(drive); … … 688 688 DosQCurDisk(&ulDriveNum, &ulDriveMap); 689 689 for (x = 0; x < 26; x++) { 690 if (ulDriveMap & (1 L<< x) && !(driveflags[x] & DRIVE_IGNORE)) {690 if (ulDriveMap & (1 << x) && !(driveflags[x] & DRIVE_IGNORE)) { 691 691 { 692 692 CHAR s[80]; … … 710 710 } 711 711 } 712 else if (!(ulDriveMap & (1 L<< x)))712 else if (!(ulDriveMap & (1 << x))) 713 713 driveflags[x] |= DRIVE_INVALID; 714 714 } … … 850 850 BOOL IsBinary(register CHAR * str, ULONG len) 851 851 { 852 register ULONG x = 0 L;852 register ULONG x = 0; 853 853 854 854 if (str) { … … 873 873 874 874 if (filename) { 875 if (!DosOpen(filename, &handle, &ulAction, 0 L, 0L,875 if (!DosOpen(filename, &handle, &ulAction, 0, 0, 876 876 OPEN_ACTION_FAIL_IF_NEW | OPEN_ACTION_OPEN_IF_EXISTS, 877 877 OPEN_FLAGS_FAIL_ON_ERROR | OPEN_FLAGS_NOINHERIT | 878 878 OPEN_FLAGS_SEQUENTIAL | OPEN_SHARE_DENYNONE | 879 OPEN_ACCESS_READONLY, 0 L)) {879 OPEN_ACCESS_READONLY, 0)) { 880 880 len = 512; 881 881 rc = DosRead(handle, buff, len, &len); … … 898 898 HMODULE hmod = 0; 899 899 APIRET rc; 900 ULONG startdrive = 3 L;900 ULONG startdrive = 3; 901 901 CHAR objerr[CCHMAXPATH]; 902 902
Note:
See TracChangeset
for help on using the changeset viewer.