Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/coreclr/vm/gcheaputilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,12 @@ HMODULE LoadStandaloneGc(LPCWSTR libFileName, LPCWSTR libFilePath)
return nullptr;
}

// The APP_CONTEXT_BASE_DIRECTORY is always set by the host. In cases
// where the runtime is activated as a component, the base directory
// will be an empty string. If the base directory is an empty string, skip it.
SString appBase;
if (HostInformation::GetProperty("APP_CONTEXT_BASE_DIRECTORY", appBase))
if (HostInformation::GetProperty("APP_CONTEXT_BASE_DIRECTORY", appBase)
&& u16_strlen(appBase.GetUnicode()) != 0)
{
PathString libPath = appBase.GetUnicode();
libPath.Append(libFileName);
Expand Down
Loading