Skip to content

Commit 7e4346c

Browse files
authored
Addendum to 344922c
1 parent 21b379e commit 7e4346c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Client/launch/Main.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,8 @@ namespace mta::launcher
212212
if (!dll_guard.SetDirectory(mta_path_w.c_str()))
213213
return std::unexpected(DllLoadError::LoadFailed);
214214

215-
if (HMODULE module = LoadLibraryW(dll_name_w.c_str()))
215+
std::wstring full_path_w = std::wstring(mta_path_w.c_str()) + L"\\" + dll_name_w;
216+
if (HMODULE module = LoadLibraryW(full_path_w.c_str()))
216217
return module;
217218

218219
return std::unexpected(DllLoadError::LoadFailed);

0 commit comments

Comments
 (0)