Changeset 838 for trunk/dll/copyf.c
- Timestamp:
- Sep 21, 2007, 9:19:18 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/dll/copyf.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/copyf.c
r827 r838 363 363 364 364 DosError(FERR_DISABLEHARDERR); 365 if (! DosFindFirst(oldname)) {365 if (!xDosFindFirst(oldname)) { 366 366 do { 367 367 … … 383 383 rc = docopyf(type,, "%s",); /* copy file */ 384 384 DosError(FERR_DISABLEHARDERR); 385 } while (!rc && ! DosFindNext());385 } while (!rc && !xDosFindNext()); 386 386 DosFindClose(hdir); 387 387 } … … 747 747 748 748 DosError(FERR_DISABLEHARDERR); 749 if (! DosFindFirst(str, &search_handle, FILE_NORMAL | FILE_DIRECTORY |750 FILE_SYSTEM | FILE_READONLY | FILE_HIDDEN | FILE_ARCHIVED,751 f, sizeof(FILEFINDBUF3), &num_matches, FIL_STANDARD)) {749 if (!xDosFindFirst(str, &search_handle, FILE_NORMAL | FILE_DIRECTORY | 750 FILE_SYSTEM | FILE_READONLY | FILE_HIDDEN | FILE_ARCHIVED, 751 f, sizeof(FILEFINDBUF3), &num_matches, FIL_STANDARD)) { 752 752 753 753 strcpy(ss, s); … … 779 779 num_matches = 1L; 780 780 DosError(FERR_DISABLEHARDERR); 781 } while (! DosFindNext(search_handle, f, sizeof(FILEFINDBUF3),782 &num_matches));781 } while (!xDosFindNext(search_handle, f, sizeof(FILEFINDBUF3), 782 &num_matches)); 783 783 DosFindClose(search_handle); 784 784 } … … 838 838 839 839 search_handle = HDIR_CREATE; 840 num_matches = 1 L;840 num_matches = 1; 841 841 842 842 DosError(FERR_DISABLEHARDERR); 843 if (! DosFindFirst(str, &search_handle, FILE_NORMAL, f,844 sizeof(FILEFINDBUF3), &num_matches, FIL_STANDARD)) {843 if (!xDosFindFirst(str, &search_handle, FILE_NORMAL, f, 844 sizeof(FILEFINDBUF3), &num_matches, FIL_STANDARD)) { 845 845 846 846 strcpy(ss, s); … … 850 850 strcpy(p, f->achName); 851 851 unlinkf("%s", ss); 852 num_matches = 1 L;852 num_matches = 1; 853 853 DosError(FERR_DISABLEHARDERR); 854 } while (! DosFindNext(search_handle, f, sizeof(FILEFINDBUF3),855 &num_matches));854 } while (!xDosFindNext(search_handle, f, sizeof(FILEFINDBUF3), 855 &num_matches)); 856 856 DosFindClose(search_handle); 857 857 }
Note:
See TracChangeset
for help on using the changeset viewer.
