summaryrefslogtreecommitdiff
path: root/src/debug/di
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/debug/di
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/debug/di')
-rw-r--r--src/debug/di/process.cpp4
-rw-r--r--src/debug/di/publish.cpp4
-rw-r--r--src/debug/di/shimprocess.cpp4
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 6e0350b8eb..373f90389c 100644
--- a/src/debug/di/shimprocess.cpp
+++ b/src/debug/di/shimprocess.cpp
@@ -1829,10 +1829,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.
//