VirtualBox

Ignore:
Timestamp:
Nov 23, 2010 1:16:36 PM (14 years ago)
Author:
vboxsync
Message:

SUPR3HardenedVerify.cpp: Fixed bugs in supR3HardenedVerifyDir+File.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPR3HardenedVerify.cpp

    r33874 r34280  
    13911391        rc = supR3HardenedQueryFsObjectByPath(Info.szPath, &FsObjState, pszErr, cbErr);
    13921392        if (RT_SUCCESS(rc))
    1393             rc = supR3HardenedVerifyFsObject(&FsObjState,true /*fDir*/, fRelaxed, Info.szPath, pszErr, cbErr);
     1393            rc = supR3HardenedVerifyFsObject(&FsObjState, true /*fDir*/, fRelaxed, Info.szPath, pszErr, cbErr);
    13941394        if (RT_FAILURE(rc))
    13951395            return rc;
    1396         Info.szPath[Info.aoffComponents[iComponent + 1] - 1] = iComponent + 1 == cComponents ? RTPATH_SLASH : '\0';
     1396        Info.szPath[Info.aoffComponents[iComponent + 1] - 1] = iComponent + 1 != cComponents ? RTPATH_SLASH : '\0';
    13971397    }
    13981398
     
    14511451        if (RT_FAILURE(rc))
    14521452            return rc;
    1453         Info.szPath[Info.aoffComponents[iComponent + 1] - 1] = fFinal ? RTPATH_SLASH : '\0';
     1453        Info.szPath[Info.aoffComponents[iComponent + 1] - 1] = !fFinal ? RTPATH_SLASH : '\0';
    14541454    }
    14551455
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette