Ticket #9485: AmigaOS4-SDK53.24.diff

File AmigaOS4-SDK53.24.diff, 1.5 KB (added by raziel-, 11 years ago)
  • backends/fs/amigaos4/amigaos4-fs.cpp

    diff -r eb7c3bc1856d backends/fs/amigaos4/amigaos4-fs.cpp
    a b  
    335335        // Regular RWED protection flags are low-active or inverted, thus the negation.
    336336        // moreover pseudo root filesystem (null _pFileLock) is readable whatever the
    337337        // protection says
    338         bool readable = !(_nProt & EXDF_READ) || _pFileLock == 0;
     338        bool readable = !(_nProt & EXDF_OTR_READ) || _pFileLock == 0;
    339339
    340340        return readable;
    341341}
     
    344344        // Regular RWED protection flags are low-active or inverted, thus the negation.
    345345        // moreover pseudo root filesystem (null _pFileLock) is never writable whatever
    346346        // the protection says (because of the pseudo nature)
    347         bool writable = !(_nProt & EXDF_WRITE) && _pFileLock !=0;
     347        bool writable = !(_nProt & EXDF_OTR_WRITE) && _pFileLock !=0;
    348348
    349349        return writable;
    350350}
     
    367367        dosList = IDOS->NextDosEntry(dosList, LDF_VOLUMES);
    368368        while (dosList) {
    369369                if (dosList->dol_Type == DLT_VOLUME &&
    370                         dosList->dol_Name &&
    371                         dosList->dol_Task) {
     370                        dosList->dol_Name) {
     371
     372                        // Original was
     373                        // dosList->dol_Name &&
     374                        // dosList->dol_Task) {
     375                        // which errored using SDK 53.24 with a 'struct dosList' has no member called 'dol_Task'
     376                        // I removed dol_Task because it's not used anywhere else
     377                        // and it neither brought up further errors nor crashes or regressions.
    372378
    373379                        // Copy name to buffer
    374380                        IDOS->CopyStringBSTRToC(dosList->dol_Name, buffer, MAXPATHLEN);