aboutsummaryrefslogtreecommitdiff
path: root/loader_wsock32_proxy
diff options
context:
space:
mode:
authorp0358 <p0358@users.noreply.github.com>2022-09-19 01:56:21 +0200
committerGitHub <noreply@github.com>2022-09-19 01:56:21 +0200
commit5dd0949213203572109d95daa934d113832525a7 (patch)
tree3c4be1449d6d909d0687312ea8fb86077433f044 /loader_wsock32_proxy
parent70fbe2b88495d7239a972a4fd209ee68477eb2fa (diff)
downloadNorthstarLauncher-5dd0949213203572109d95daa934d113832525a7.tar.gz
NorthstarLauncher-5dd0949213203572109d95daa934d113832525a7.zip
Set current directory properly (#275)
Diffstat (limited to 'loader_wsock32_proxy')
-rw-r--r--loader_wsock32_proxy/dllmain.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/loader_wsock32_proxy/dllmain.cpp b/loader_wsock32_proxy/dllmain.cpp
index 7feb278d..c5610042 100644
--- a/loader_wsock32_proxy/dllmain.cpp
+++ b/loader_wsock32_proxy/dllmain.cpp
@@ -39,6 +39,8 @@ BOOL WINAPI DllMain(HINSTANCE hInst, DWORD reason, LPVOID)
return true;
}
+ SetCurrentDirectoryW(exePath);
+
if (!ProvisionNorthstar()) // does not call InitialiseNorthstar yet, will do it on LauncherMain hook
return true;