diff options
author | Lakshmi Priya <Priya91@users.noreply.github.com> | 2015-09-16 12:06:13 -0700 |
---|---|---|
committer | Lakshmi Priya <Priya91@users.noreply.github.com> | 2015-09-16 12:06:13 -0700 |
commit | 8ff2389204d7c41b17eff0e9536267aea8d6496f (patch) | |
tree | b111e7b533d5d0aa648bec6c66e2b757d118519c /src/debug/di | |
parent | 8cad40bbcf4c404c518c1f202a0f93cf71c866c6 (diff) | |
parent | 3b05c625e21ed968f1966b78956c99326fcc0570 (diff) | |
download | coreclr-8ff2389204d7c41b17eff0e9536267aea8d6496f.tar.gz coreclr-8ff2389204d7c41b17eff0e9536267aea8d6496f.tar.bz2 coreclr-8ff2389204d7c41b17eff0e9536267aea8d6496f.zip |
Merge pull request #1560 from Priya91/longpath-test
Replace MAX_PATH with new defines in rest of coreclr.
Diffstat (limited to 'src/debug/di')
-rw-r--r-- | src/debug/di/process.cpp | 4 | ||||
-rw-r--r-- | src/debug/di/publish.cpp | 4 | ||||
-rw-r--r-- | src/debug/di/shimprocess.cpp | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/debug/di/process.cpp b/src/debug/di/process.cpp index 41613d8213..484905b62b 100644 --- a/src/debug/di/process.cpp +++ b/src/debug/di/process.cpp @@ -437,7 +437,7 @@ IMDInternalImport * CordbProcess::LookupMetaDataFromDebuggerForSingleFile( { INTERNAL_DAC_CALLBACK(this); - ULONG32 cchLocalImagePath = MAX_PATH; + ULONG32 cchLocalImagePath = MAX_LONGPATH; ULONG32 cchLocalImagePathRequired; NewArrayHolder<WCHAR> pwszLocalFilePath = NULL; IMDInternalImport * pMDII = NULL; @@ -7592,7 +7592,7 @@ void CordbProcess::VerifyControlBlock() } #ifdef _DEBUG - char buf[MAX_PATH]; + char buf[MAX_LONGPATH]; DWORD len = GetEnvironmentVariableA("CORDBG_NotCompatibleTest", buf, sizeof(buf)); _ASSERTE(len < sizeof(buf)); diff --git a/src/debug/di/publish.cpp b/src/debug/di/publish.cpp index db432c94cd..1e16ad510d 100644 --- a/src/debug/di/publish.cpp +++ b/src/debug/di/publish.cpp @@ -494,9 +494,9 @@ CorpubProcess::CorpubProcess(DWORD dwProcessId, // MSDN is very confused about whether the lenght is in bytes (MSDN 2002) or chars (MSDN 2004). // We err on the safe side by having buffer that's twice as large, and ignoring // the units on the return value. - WCHAR szName[MAX_PATH * sizeof(WCHAR)]; + WCHAR szName[MAX_LONGPATH * sizeof(WCHAR)]; - DWORD lenInCharsOrBytes = MAX_PATH*sizeof(WCHAR); + DWORD lenInCharsOrBytes = MAX_LONGPATH*sizeof(WCHAR); // Pass NULL module handle to get "Main Module", which will give us the process name. DWORD ret = (*fpGetModuleFileNameEx) (hProcess, NULL, szName, lenInCharsOrBytes); diff --git a/src/debug/di/shimprocess.cpp b/src/debug/di/shimprocess.cpp index e4b511abec..463b35c4e9 100644 --- a/src/debug/di/shimprocess.cpp +++ b/src/debug/di/shimprocess.cpp @@ -1839,10 +1839,10 @@ HMODULE ShimProcess::GetDacModule() #ifdef FEATURE_PAL // For now on Unix we'll just search for DAC in the default location. // Debugger can always control it by setting LD_LIBRARY_PATH env var. - WCHAR wszAccessDllPath[MAX_PATH] = MAKEDLLNAME_W(W("mscordaccore")); + WCHAR wszAccessDllPath[MAX_LONGPATH] = MAKEDLLNAME_W(W("mscordaccore")); #else - WCHAR wszAccessDllPath[MAX_PATH]; + WCHAR wszAccessDllPath[MAX_LONGPATH]; // // Load the access DLL from the same directory as the the current CLR Debugging Services DLL. // |