summaryrefslogtreecommitdiff
path: root/src/debug/ee
diff options
context:
space:
mode:
authorLakshmi Priya <Priya91@users.noreply.github.com>2015-09-28 15:56:03 -0700
committerLakshmi Priya <Priya91@users.noreply.github.com>2015-09-28 15:56:03 -0700
commitbdc5bce919855052679f07450065e17520674970 (patch)
treeba61b0c83c0a42e63e682ccbd4fd3a9e4673997a /src/debug/ee
parent99458af30ac18c5b60afa7a68e241ed70b880eca (diff)
parent965e5d6480ebbff3d021665f95a37cb94eb9d56a (diff)
downloadcoreclr-bdc5bce919855052679f07450065e17520674970.tar.gz
coreclr-bdc5bce919855052679f07450065e17520674970.tar.bz2
coreclr-bdc5bce919855052679f07450065e17520674970.zip
Merge pull request #1589 from Priya91/pathstring
Use SString type - PathString for path allocations in binder.
Diffstat (limited to 'src/debug/ee')
-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 029c62aabe..270615bc1e 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)
{