summaryrefslogtreecommitdiff
path: root/src/utilcode/debug.cpp
diff options
context:
space:
mode:
authorRama Krishnan Raghupathy <ramarag@microsoft.com>2016-02-18 18:21:18 -0800
committerRama Krishnan Raghupathy <ramarag@microsoft.com>2016-02-19 18:09:11 -0800
commitf98fb85e72d0f24c58d9e54b8b3bff2c67f985fb (patch)
treea532e7803fbbe420807eb7d9390108554b02c46d /src/utilcode/debug.cpp
parent01ffa08a2e4748e9826956ea961eacb227b6ee87 (diff)
downloadcoreclr-f98fb85e72d0f24c58d9e54b8b3bff2c67f985fb.tar.gz
coreclr-f98fb85e72d0f24c58d9e54b8b3bff2c67f985fb.tar.bz2
coreclr-f98fb85e72d0f24c58d9e54b8b3bff2c67f985fb.zip
This Change Adds initial Support for LongFiles in the VM,
They are: 1. Wrappers for OS APIs which take or return PATHS 2. Fixing the usage of following Api's: GetEnvironmentVariableW SearchPathW GetShortPathNameW GetLongPathNameW GetModuleFileName Work remaining: Remove fixed size buffers in the VM
Diffstat (limited to 'src/utilcode/debug.cpp')
-rw-r--r--src/utilcode/debug.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utilcode/debug.cpp b/src/utilcode/debug.cpp
index b1fb16524b..a96aca148a 100644
--- a/src/utilcode/debug.cpp
+++ b/src/utilcode/debug.cpp
@@ -239,8 +239,8 @@ VOID LogAssert(
GetSystemTime(&st);
#endif
- WCHAR exename[300];
- WszGetModuleFileName(NULL, exename, sizeof(exename)/sizeof(WCHAR));
+ PathString exename;
+ WszGetModuleFileName(NULL, exename);
LOG((LF_ASSERT,
LL_FATALERROR,
@@ -259,7 +259,7 @@ VOID LogAssert(
szFile,
iLine,
szExpr));
- LOG((LF_ASSERT, LL_FATALERROR, "RUNNING EXE: %ws\n", exename));
+ LOG((LF_ASSERT, LL_FATALERROR, "RUNNING EXE: %ws\n", exename.GetUnicode()));
}
//*****************************************************************************