Skip to content

Commit

Permalink
Respond to PR feedback.
Browse files Browse the repository at this point in the history
  • Loading branch information
eerhardt committed Feb 22, 2020
1 parent 4901895 commit f3ec07c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ private ClientConfigPaths(string exePath, bool includeUserConfig)
{
// An EntryAssembly may not be found when running from a custom host.
// Try to find the native entry point.
ApplicationUri = Process.GetCurrentProcess().MainModule.FileName;
using (Process currentProcess = Process.GetCurrentProcess())
{
ApplicationUri = currentProcess.MainModule.FileName;
}
}
}

Expand Down

0 comments on commit f3ec07c

Please sign in to comment.