diff --git a/OptiScaler/Util.cpp b/OptiScaler/Util.cpp index f7083b20..cebd5af6 100644 --- a/OptiScaler/Util.cpp +++ b/OptiScaler/Util.cpp @@ -363,7 +363,7 @@ bool Util::IsSubpath(const std::filesystem::path& path, const std::filesystem::p } std::optional Util::FindFilePath(const std::filesystem::path& startDir, - const std::filesystem::path fileName) + const std::filesystem::path& fileName) { std::filesystem::path optiPath(Config::Instance()->MainDllPath.value()); auto normalizedOptiPath = optiPath.lexically_normal(); diff --git a/OptiScaler/Util.h b/OptiScaler/Util.h index e9b22839..7f3176ce 100644 --- a/OptiScaler/Util.h +++ b/OptiScaler/Util.h @@ -73,8 +73,7 @@ std::string GetWindowsName(const OSVERSIONINFOW& os); std::wstring GetExeProductName(); std::wstring GetWindowTitle(HWND hwnd); std::optional FindFilePath(const std::filesystem::path& startDir, - const std::filesystem::path fileName); -std::optional WhoIsTheCallerPath(void* returnAddress); + const std::filesystem::path& fileName); std::string WhoIsTheCaller(void* returnAddress); HMODULE GetCallerModule(void* returnAddress); MonitorInfo GetMonitorInfoForWindow(HWND hwnd);