Lines Matching defs:pFile

318  * @param   pFile               The file table entry.
324 static int supR3HardenedMakeFilePath(PCSUPINSTFILE pFile, char *pszDst, size_t cchDst, bool fWithFilename, bool fFatal)
329 int rc = supR3HardenedMakePath(pFile->enmDir, pszDst, cchDst, fFatal);
332 size_t cchFile = suplibHardenedStrLen(pFile->pszFile);
337 suplibHardenedMemCopy(&pszDst[off], pFile->pszFile, cchFile + 1);
342 pFile->pszFile, (long)off);
494 * @param pFile The file entry.
501 static int supR3HardenedVerifyFileOpen(PCSUPINSTFILE pFile, bool fFatal, intptr_t *phFile)
506 int rc = supR3HardenedMakeFilePath(pFile, szPath, sizeof(szPath), true /*fWithFilename*/, fFatal);
528 if ( !pFile->fOptional
530 && (err != ERROR_PATH_NOT_FOUND || pFile->enmDir != kSupID_Testcase) ) )
549 * @param pFile The file entry.
555 static int supR3HardenedVerifyFileSignature(PCSUPINSTFILE pFile, PSUPVERIFIEDFILE pVerified, bool fFatal, bool fLeaveFileOpen)
569 rc = supR3HardenedVerifyFileOpen(pFile, fFatal, &hFileOpened);
583 if (pFile->enmType == kSupIFT_Rc)
593 pFile->pszFile, rc, szErr);
632 PCSUPINSTFILE pFile = &g_aSupInstallFiles[iFile];
643 return supR3HardenedVerifyFileSignature(pFile, pVerified, fFatal, fLeaveFileOpen);
653 (void *)pVerified->hFile, pFile->pszFile);
665 int rc = supR3HardenedVerifyFixedDir(pFile->enmDir, fFatal);
669 rc = supR3HardenedVerifyFileOpen(pFile, fFatal, &pVerified->hFile);
673 rc = supR3HardenedVerifyFileSignature(pFile, pVerified, fFatal, fLeaveFileOpen);
686 rc = supR3HardenedMakeFilePath(pFile, szPath, sizeof(szPath), true /*fWithFilename*/, fFatal);
739 if (!pFile->fOptional || err != ENOENT)
765 PCSUPINSTFILE pFile = &g_aSupInstallFiles[iFile];
772 int rc = supR3HardenedMakeFilePath(pFile, szName, sizeof(szName), true /*fWithFilename*/, fFatal);
799 supR3HardenedMakeFilePath(pFile, szName, sizeof(szName), true /*fWithFilename*/, fFatal);