aboutsummaryrefslogtreecommitdiff
path: root/loader_launcher_proxy
diff options
context:
space:
mode:
authorp0358 <p0358@users.noreply.github.com>2022-01-02 07:57:21 +0100
committerp0358 <p0358@users.noreply.github.com>2022-01-02 07:57:21 +0100
commit664d5d434e8e31f8f74992f2f2b94ffd8a7609c0 (patch)
treec034971e56fd3efb3f84d3bb37d58ae2c468c7a1 /loader_launcher_proxy
parent65c2e58a6a788a504c352d4ed34d43be17d0abdd (diff)
downloadNorthstarLauncher-664d5d434e8e31f8f74992f2f2b94ffd8a7609c0.tar.gz
NorthstarLauncher-664d5d434e8e31f8f74992f2f2b94ffd8a7609c0.zip
add wsock32 proxy!!! (it works quite nicely)
Diffstat (limited to 'loader_launcher_proxy')
-rw-r--r--loader_launcher_proxy/dllmain.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/loader_launcher_proxy/dllmain.cpp b/loader_launcher_proxy/dllmain.cpp
index 9fddc8d4..cf69d63e 100644
--- a/loader_launcher_proxy/dllmain.cpp
+++ b/loader_launcher_proxy/dllmain.cpp
@@ -93,7 +93,7 @@ bool LoadNorthstar()
FARPROC Hook_Init = nullptr;
{
swprintf_s(dllPath, L"%s\\Northstar.dll", exePath);
- hHookModule = LoadLibraryExW(dllPath, 0i64, 8u);
+ hHookModule = LoadLibraryExW(dllPath, 0, LOAD_WITH_ALTERED_SEARCH_PATH);
if (hHookModule) Hook_Init = GetProcAddress(hHookModule, "InitialiseNorthstar");
if (!hHookModule || Hook_Init == nullptr)
{
@@ -120,7 +120,7 @@ extern "C" __declspec(dllexport) int LauncherMain(HINSTANCE hInstance, HINSTANCE
if (loadNorthstar)
{
swprintf_s(dllPath, L"%s\\bin\\x64_retail\\tier0.dll", exePath);
- hTier0Module = LoadLibraryW(dllPath);
+ hTier0Module = LoadLibraryExW(dllPath, 0, LOAD_WITH_ALTERED_SEARCH_PATH);
if (!hTier0Module)
{
LibraryLoadError(GetLastError(), L"tier0.dll", dllPath);
@@ -133,7 +133,7 @@ extern "C" __declspec(dllexport) int LauncherMain(HINSTANCE hInstance, HINSTANCE
//else printf("\n\n WILL !!!NOT!!! LOAD NORTHSTAR\n\n");
swprintf_s(dllPath, L"%s\\bin\\x64_retail\\launcher.org.dll", exePath);
- hLauncherModule = LoadLibraryExW(dllPath, 0i64, 8u);
+ hLauncherModule = LoadLibraryExW(dllPath, 0, LOAD_WITH_ALTERED_SEARCH_PATH);
if (!hLauncherModule)
{
LibraryLoadError(GetLastError(), L"launcher.org.dll", dllPath);