summaryrefslogtreecommitdiff
path: root/src/zap/zapper.cpp
diff options
context:
space:
mode:
authorLakshmi Priya Sekar <lasekar@microsoft.com>2015-09-08 12:01:33 -0700
committerLakshmi Priya Sekar <lasekar@microsoft.com>2015-09-08 14:31:43 -0700
commit260f64716ae3bc8fb9ae4708cbb8d4a0a6c48a91 (patch)
treeeaf3d7a932739a8da89e64f0c9ac322e8c671dba /src/zap/zapper.cpp
parent2d2d0a5b512e2832565c448d9b4c6d6c1897f150 (diff)
downloadcoreclr-260f64716ae3bc8fb9ae4708cbb8d4a0a6c48a91.tar.gz
coreclr-260f64716ae3bc8fb9ae4708cbb8d4a0a6c48a91.tar.bz2
coreclr-260f64716ae3bc8fb9ae4708cbb8d4a0a6c48a91.zip
Replace MAX_PATH with new defines, rest of coreclr.
Diffstat (limited to 'src/zap/zapper.cpp')
-rw-r--r--src/zap/zapper.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/zap/zapper.cpp b/src/zap/zapper.cpp
index b0a5aca8bd..0a7aa8ad31 100644
--- a/src/zap/zapper.cpp
+++ b/src/zap/zapper.cpp
@@ -731,15 +731,15 @@ void Zapper::LoadAndInitializeJITForNgen(LPCWSTR pwzJitName, OUT HINSTANCE* phJi
HRESULT hr = E_FAIL;
#ifdef FEATURE_MERGE_JIT_AND_ENGINE
- WCHAR CoreClrFolder[MAX_PATH + 1];
+ WCHAR CoreClrFolder[MAX_LONGPATH + 1];
extern HINSTANCE g_hThisInst;
- if (WszGetModuleFileName(g_hThisInst, CoreClrFolder, MAX_PATH))
+ if (WszGetModuleFileName(g_hThisInst, CoreClrFolder, MAX_LONGPATH))
{
WCHAR *filePtr = wcsrchr(CoreClrFolder, W('\\'));
if (filePtr)
{
filePtr[1] = W('\0');
- wcscat_s(CoreClrFolder, MAX_PATH, pwzJitName);
+ wcscat_s(CoreClrFolder, MAX_LONGPATH, pwzJitName);
*phJit = ::WszLoadLibrary(CoreClrFolder);
if (*phJit == NULL)
{
@@ -1462,8 +1462,8 @@ void Zapper::PrintAssemblyVersionInfo(IAssemblyName *pName, SString &s)
//
WCHAR szGuid[64];
- WCHAR path[MAX_PATH];
- DWORD cPath = MAX_PATH;
+ WCHAR path[MAX_LONGPATH];
+ DWORD cPath = MAX_LONGPATH;
IfFailThrow(QueryNativeAssemblyInfo(pName, path, &cPath));
@@ -2213,8 +2213,8 @@ void Zapper::CreatePdbInCurrentDomain(BSTR pAssemblyPathOrName, BSTR pNativeImag
// Now is a good time to make sure pNativeImagePath is the same native image
// fusion loaded
{
- WCHAR wzZapImagePath[MAX_PATH] = {0};
- DWORD dwZapImagePathLength = MAX_PATH;
+ WCHAR wzZapImagePath[MAX_LONGPATH] = {0};
+ DWORD dwZapImagePathLength = MAX_LONGPATH;
hr = E_FAIL;
if (m_pEECompileInfo->CheckAssemblyZap(hAssembly, wzZapImagePath, &dwZapImagePathLength))
@@ -2386,8 +2386,8 @@ void Zapper::ComputeDependenciesInCurrentDomain(LPCWSTR pAssemblyString, CORCOMP
// Check if we have a native image already, and if so get its GUID
//
- WCHAR zapManifestPath[MAX_PATH];
- DWORD cZapManifestPath = MAX_PATH;
+ WCHAR zapManifestPath[MAX_LONGPATH];
+ DWORD cZapManifestPath = MAX_LONGPATH;
if (pNativeImageSig &&
m_pEECompileInfo->CheckAssemblyZap(hAssembly, zapManifestPath, &cZapManifestPath))
{
@@ -2821,8 +2821,8 @@ Exit:
#ifdef FEATURE_FUSION
BOOL Zapper::CheckAssemblyUpToDate(CORINFO_ASSEMBLY_HANDLE hAssembly, CORCOMPILE_NGEN_SIGNATURE * pNativeImageSig)
{
- WCHAR zapManifestPath[MAX_PATH];
- DWORD cZapManifestPath = MAX_PATH;
+ WCHAR zapManifestPath[MAX_LONGPATH];
+ DWORD cZapManifestPath = MAX_LONGPATH;
if (!m_pEECompileInfo->CheckAssemblyZap(
hAssembly,
@@ -2861,7 +2861,7 @@ BOOL Zapper::TryToInstallFromRepository(CORINFO_ASSEMBLY_HANDLE hAssembly, CORCO
// First see if the NI is available in a folder named "NGen" under the CLR location.
// This folder is used by CBS to store build lab generated NIs. Moving files out of
// this folder might confuse CBS, so we hard link NIs from this folder into the NIC.
- WCHAR wszNGenPath[MAX_PATH];
+ WCHAR wszNGenPath[MAX_LONGPATH];
DWORD dwNGenPathLen = COUNTOF(wszNGenPath);
IfFailThrow(GetInternalSystemDirectory(wszNGenPath, &dwNGenPathLen));
@@ -3099,8 +3099,8 @@ void Zapper::InstallFromRepository(LPCWSTR lpszNativeImage,
PrintFusionCacheEntry(LogLevel_Info, pName);
}
- WCHAR zapManifestPath[MAX_PATH];
- DWORD cPath = MAX_PATH;
+ WCHAR zapManifestPath[MAX_LONGPATH];
+ DWORD cPath = MAX_LONGPATH;
IfFailThrow(pAssemblyLocation->GetPath(zapManifestPath, &cPath));
if (pNativeImageSig)
@@ -3209,7 +3209,7 @@ void Zapper::GetOutputFolder()
will move the files to the NIC preserving the security attributes.
Now other users cannot use the ngen images, which is bad.
*/
- WCHAR tempFolder[MAX_PATH];
+ WCHAR tempFolder[MAX_LONGPATH];
DWORD tempFolderLen = NumItems(tempFolder);
IfFailThrow(GetCachePath(ASM_CACHE_ZAP, tempFolder, &tempFolderLen));