diff options
author | Jan Vorlicek <janvorli@microsoft.com> | 2016-03-11 00:09:13 +0300 |
---|---|---|
committer | Jan Vorlicek <janvorli@microsoft.com> | 2016-03-11 20:44:47 +0300 |
commit | 096c82deabf1e3fbe6b5f794b7a2e5c250b48ead (patch) | |
tree | c7143265a9f093eacf4c16867411294c5ab5e00b /src/Native/Runtime/EHHelpers.cpp | |
parent | 654002d3cd76aa9f302257cb47791f1c806819a6 (diff) |
Implement PalGetModuleFileName for Unix
This change implements PalGetModuleFileName for Unix. Since the module name
passed to us is a utf-8 string, I have modified the signature of the function
to use TCHAR and then modified managed RhGetModuleFileName interop signature
to use byte* for Unix instead of char*. And I have also modified the called
of this function, the TryGetFullPathToApplicationModule, to perform
conversion of that to regular string.
Diffstat (limited to 'src/Native/Runtime/EHHelpers.cpp')
-rw-r--r-- | src/Native/Runtime/EHHelpers.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Native/Runtime/EHHelpers.cpp b/src/Native/Runtime/EHHelpers.cpp index a50bbf8b0..5e4ffc500 100644 --- a/src/Native/Runtime/EHHelpers.cpp +++ b/src/Native/Runtime/EHHelpers.cpp @@ -118,7 +118,7 @@ COOP_PINVOKE_HELPER(void, RhpSetThreadDoNotTriggerGC, ()) pThisThread->SetDoNotTriggerGc(); } -COOP_PINVOKE_HELPER(Int32, RhGetModuleFileName, (HANDLE moduleHandle, _Out_ wchar_t** pModuleNameOut)) +COOP_PINVOKE_HELPER(Int32, RhGetModuleFileName, (HANDLE moduleHandle, _Out_ const TCHAR** pModuleNameOut)) { return PalGetModuleFileName(pModuleNameOut, moduleHandle); } |