Lines Matching defs:cwcDir

537  * @param   cwcDir              The length of the directory name. RTSTR_MAX if
541 static uint32_t supR3HardenedWinVerifyCacheHashDirAndFile(PCRTUTF16 pawcDir, uint32_t cwcDir, const char *pszName)
544 while (cwcDir-- > 0)
708 * @param cwcDir The length of the directory name.
711 static PVERIFIERCACHEENTRY supR3HardenedWinVerifyCacheLookupImport(PCRTUTF16 pawcDir, uint32_t cwcDir, const char *pszName)
713 uint32_t uHash = supR3HardenedWinVerifyCacheHashDirAndFile(pawcDir, cwcDir, pszName);
715 uint32_t const cbPath = (uint32_t)((cwcDir + 1 + strlen(pszName)) * sizeof(RTUTF16));
722 if (supR3HardenedWinVerifyCacheIsMatch(pCur->wszPath, pawcDir, cwcDir))
724 if (pCur->wszPath[cwcDir] == '\\' || pCur->wszPath[cwcDir] == '/')
726 if (RTUtf16ICmpAscii(&pCur->wszPath[cwcDir + 1], pszName))
762 uint32_t cwcDir = 0;
766 if ((wc == '\\' || wc == '/' || wc == ':') && cwcDir + 2 != i)
767 cwcDir = i - 1;
768 if ( g_System32NtPath.UniStr.Length / sizeof(WCHAR) == cwcDir
769 && supR3HardenedWinVerifyCacheIsMatch(pawcDir, g_System32NtPath.UniStr.Buffer, cwcDir))
815 if (pawcDir && supR3HardenedWinVerifyCacheLookupImport(pawcDir, cwcDir, uBuf.szName) != NULL)
830 + (pawcDir ? (cwcDir + 1) * sizeof(RTUTF16) : 0);
843 pImport->cwcAltSearchDir = cwcDir;
845 memcpy(pImport->pwszAltSearchDir, pawcDir, cwcDir * sizeof(RTUTF16));
846 pImport->pwszAltSearchDir[cwcDir] = '\0';
981 uint32_t cwcDir;
1002 if (aDirs[i].pawcDir && aDirs[i].cwcDir && aDirs[i].cwcDir < RT_ELEMENTS(wszPath) / 3 * 2)
1004 memcpy(wszPath, aDirs[i].pawcDir, aDirs[i].cwcDir * sizeof(RTUTF16));
1005 uint32_t cwc = aDirs[i].cwcDir;