Changeset 1354 for trunk/dll/valid.c
- Timestamp:
- Dec 25, 2008, 11:43:34 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/valid.c
r1351 r1354 68 68 CHAR *NTFS; 69 69 CHAR *RAMFS; 70 BOOL fVerifyOffChecked[26]; 70 71 71 72 APIRET MakeFullName(char *pszFileName) … … 598 599 strcat(fname, "."); 599 600 ret = DosQueryAppType(fname, &apptype); 600 } 601 } //fixme protectonly BMT GKY 23 Dec 08 601 602 if ((!ret && (!apptype || 602 603 (apptype & … … 691 692 driveflags[x] &= (DRIVE_IGNORE | DRIVE_NOPRESCAN | DRIVE_NOLOADICONS | 692 693 DRIVE_NOLOADSUBJS | DRIVE_NOLOADLONGS | 693 DRIVE_INCLUDEFILES | DRIVE_SLOW | DRIVE_NOSTATS); 694 DRIVE_INCLUDEFILES | DRIVE_SLOW | DRIVE_NOSTATS | 695 DRIVE_WRITEVERIFYOFF); 694 696 if (removable != -1) { 695 697 struct … … 751 753 VOID FillInDriveFlags(VOID * dummy) 752 754 { 753 ULONG ulDriveNum, ulDriveMap ;755 ULONG ulDriveNum, ulDriveMap, size; 754 756 register INT x; 755 757 … … 757 759 driveflags[x] &= (DRIVE_IGNORE | DRIVE_NOPRESCAN | DRIVE_NOLOADICONS | 758 760 DRIVE_NOLOADSUBJS | DRIVE_NOLOADLONGS | 759 DRIVE_INCLUDEFILES | DRIVE_SLOW | DRIVE_NOSTATS); 761 DRIVE_INCLUDEFILES | DRIVE_SLOW | DRIVE_NOSTATS | 762 DRIVE_WRITEVERIFYOFF); 760 763 memset(driveserial, -1, sizeof(driveserial)); 761 764 DosError(FERR_DISABLEHARDERR); … … 764 767 if (ulDriveMap & (1 << x) && !(driveflags[x] & DRIVE_IGNORE)) { 765 768 { 766 CHAR s[80];767 ULONG flags = 0, size = sizeof(ULONG);768 769 sprintf(s, "%c.DriveFlags", (CHAR) (x + 'A'));770 if (PrfQueryProfileData(fmprof, appname, s, &flags, &size) &&771 772 769 ULONG flags = 0, size = sizeof(ULONG); 770 CHAR FlagKey[80]; 771 772 sprintf(FlagKey, "%c.DriveFlags", (CHAR) (x + 'A')); 773 if (PrfQueryProfileData(fmprof, appname, FlagKey, &flags, &size) && 774 size == sizeof(ULONG)) 775 driveflags[x] |= flags; 773 776 } 774 777 … … 795 798 if (startdrive) 796 799 driveflags[startdrive - 1] |= DRIVE_BOOT; 800 } 801 { 802 INT x; 803 CHAR Key[80]; 804 805 for (x = 2; x < 26; x++) { 806 sprintf(Key, "%c.VerifyOffChecked", (CHAR) (x + 'A')); 807 size = sizeof(BOOL); 808 PrfQueryProfileData(fmprof, appname, Key, &fVerifyOffChecked[x], &size); 809 if (!fVerifyOffChecked[x]) { 810 if (driveflags[x] & DRIVE_REMOVABLE) 811 driveflags[x] |= DRIVE_WRITEVERIFYOFF; 812 if (!(driveflags[x] & DRIVE_IGNORE | DRIVE_INVALID)) { 813 fVerifyOffChecked[x] = TRUE; 814 PrfWriteProfileData(fmprof, appname, Key, &fVerifyOffChecked[x], sizeof(BOOL)); 815 } 816 } 817 } 797 818 } 798 819 }
Note:
See TracChangeset
for help on using the changeset viewer.