file_util: return string by const reference for GetExeDirectory()
This disallows modifying the internal string buffer (which shouldn't be modified anyhow).
This commit is contained in:
parent
25c34badfa
commit
ba015f825f
2 changed files with 2 additions and 2 deletions
|
@ -592,7 +592,7 @@ std::string GetBundleDirectory() {
|
|||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
std::string& GetExeDirectory() {
|
||||
const std::string& GetExeDirectory() {
|
||||
static std::string exe_path;
|
||||
if (exe_path.empty()) {
|
||||
wchar_t wchar_exe_path[2048];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue