summaryrefslogtreecommitdiff
path: root/src/debug
diff options
context:
space:
mode:
authorLakshmi Priya Sekar <lasekar@microsoft.com>2015-09-21 23:32:54 -0700
committerLakshmi Priya Sekar <lasekar@microsoft.com>2015-09-25 13:50:01 -0700
commit965e5d6480ebbff3d021665f95a37cb94eb9d56a (patch)
tree6e45d8b590cb447bdd813c0fd884dd07024535cb /src/debug
parentb8282e0b7359e1abbcfdf4574621118b4f61d377 (diff)
downloadcoreclr-965e5d6480ebbff3d021665f95a37cb94eb9d56a.tar.gz
coreclr-965e5d6480ebbff3d021665f95a37cb94eb9d56a.tar.bz2
coreclr-965e5d6480ebbff3d021665f95a37cb94eb9d56a.zip
Use PathString type to allocate large path strings on linux scenario.
Respond to PR feedback. Fix test failures in mscoree.
Diffstat (limited to 'src/debug')
-rw-r--r--src/debug/ee/debugger.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/debug/ee/debugger.cpp b/src/debug/ee/debugger.cpp
index cb757fa0bb..cb32f10b29 100644
--- a/src/debug/ee/debugger.cpp
+++ b/src/debug/ee/debugger.cpp
@@ -15136,7 +15136,8 @@ HRESULT Debugger::InitAppDomainIPC(void)
} hEnsureCleanup(this);
DWORD dwStrLen = 0;
- WCHAR szExeName[MAX_LONGPATH];
+ SString szExeNamePathString;
+ WCHAR * szExeName = szExeNamePathString.OpenUnicodeBuffer(MAX_LONGPATH);
int i;
// all fields in the object can be zero initialized.
@@ -15188,6 +15189,7 @@ HRESULT Debugger::InitAppDomainIPC(void)
szExeName,
MAX_LONGPATH);
+ szExeNamePathString.CloseBuffer(dwStrLen);
// If we couldn't get the name, then use a nice default.
if (dwStrLen == 0)
{