From 5dd0949213203572109d95daa934d113832525a7 Mon Sep 17 00:00:00 2001 From: p0358 Date: Mon, 19 Sep 2022 01:56:21 +0200 Subject: Set current directory properly (#275) --- loader_launcher_proxy/dllmain.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'loader_launcher_proxy') diff --git a/loader_launcher_proxy/dllmain.cpp b/loader_launcher_proxy/dllmain.cpp index a382bc97..06abb7b2 100644 --- a/loader_launcher_proxy/dllmain.cpp +++ b/loader_launcher_proxy/dllmain.cpp @@ -128,6 +128,8 @@ extern "C" __declspec(dllexport) int LauncherMain(HINSTANCE hInstance, HINSTANCE return 1; } + SetCurrentDirectoryW(exePath); + bool loadNorthstar = ShouldLoadNorthstar(); if (loadNorthstar) -- cgit v1.2.3