clarify GetCurrentModulePath's name

This commit is contained in:
mjk 2021-03-05 22:44:05 +00:00 committed by LAGonauta
parent 5b40d166d2
commit 2eb1eea06e
3 changed files with 3 additions and 3 deletions

View file

@ -30,7 +30,7 @@ private:
mutable std::array<char,22+1> msg;
};
std::wstring GetCurrentModulePath();
std::wstring GetExePath();
std::wstring GetShortcutPath();
#define EXTERN extern "C"

View file

@ -133,7 +133,7 @@ bool ImplEnsureAumiddedShortcutExists(const char *const aumid)
return false;
}
auto exePath = GetCurrentModulePath();
auto exePath = GetExePath();
auto shortcutPath = GetShortcutPath();
auto path = shortcutPath + LR"(\Microsoft\Windows\Start Menu\Programs\Dino.lnk)";

View file

@ -9,7 +9,7 @@ win32_error::win32_error() noexcept
: win32_error{::GetLastError()}
{}
std::wstring GetCurrentModulePath()
std::wstring GetExePath()
{
std::wstring exePath(MAX_PATH, 0);
auto charWritten = GetModuleFileName(nullptr, exePath.data(), exePath.size());