diff options
author | Brian Sullivan <briansul@microsoft.com> | 2019-05-02 18:07:46 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-02 18:07:46 -0700 |
commit | dd814e26e2206c36589f88b2c58a6f3695f7dc4e (patch) | |
tree | 229b623ff3f18278f5f037525df5c451ee070b4d /src/vm | |
parent | 299c9d5733368d101882eb89d897c88f094997c1 (diff) | |
parent | e7815dde1e3847841b260e700704da8f7b4f7a30 (diff) | |
download | coreclr-dd814e26e2206c36589f88b2c58a6f3695f7dc4e.tar.gz coreclr-dd814e26e2206c36589f88b2c58a6f3695f7dc4e.tar.bz2 coreclr-dd814e26e2206c36589f88b2c58a6f3695f7dc4e.zip |
Merge pull request #24339 from briansull/linux-creation-time
Fix the PAL implemention of GetProcessTimes to write the creation time
Diffstat (limited to 'src/vm')
-rw-r--r-- | src/vm/ceeload.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vm/ceeload.cpp b/src/vm/ceeload.cpp index e1f2b2bfec..eb1dcb9eb3 100644 --- a/src/vm/ceeload.cpp +++ b/src/vm/ceeload.cpp @@ -11654,7 +11654,7 @@ static bool GetBasename(LPCWSTR _src, __out_ecount(dstlen) __out_z LPWSTR _dst, static LPCWSTR s_pCommandLine = NULL; -// Rerieve the full command line for the current process. +// Retrieve the full command line for the current process. LPCWSTR GetManagedCommandLine() { LIMITED_METHOD_CONTRACT; @@ -11725,7 +11725,7 @@ void SaveManagedCommandLine(LPCWSTR pwzAssemblyPath, int argc, LPCWSTR *argv) LPWSTR pCursor = pNewCommandLine; Append_Next_Item(&pCursor, &remainingLen, osCommandLine, true); - Append_Next_Item(&pCursor, &remainingLen, pwzAssemblyPath, true); + Append_Next_Item(&pCursor, &remainingLen, pwzAssemblyPath, (argc > 0)); for (int i = 0; i < argc; i++) { @@ -11768,7 +11768,7 @@ static void ProfileDataAllocateScenarioInfo(ProfileEmitter * pEmitter, LPCSTR sc // Get the managed command line. LPCWSTR pCmdLine = GetManagedCommandLine(); - // If this process started as a service we won't havre a managed command line + // If this process started as a service we won't have a managed command line if (pCmdLine == nullptr) { // Use the result from GetCommandLineW() instead |