1
0
mirror of https://github.com/valinet/ExplorerPatcher.git synced 2024-11-23 23:21:08 +01:00

Setup: Fixed /extract switch to extract ep_startmenu library

This commit is contained in:
Valentin Radu 2022-03-02 00:45:43 +02:00
parent 371729ccd6
commit 43acfc1235

View File

@ -517,6 +517,19 @@ int WINAPI wWinMain(
wcscat_s(wszPath, MAX_PATH, L"\\WebView2Loader.dll");
bOk = InstallResource(TRUE, hInstance, IDR_MS_WEBVIEW2_LOADER, wszPath);
}
if (argc >= 2)
{
wcsncpy_s(wszPath, MAX_PATH, wargv[1], MAX_PATH);
}
else
{
GetCurrentDirectoryW(MAX_PATH, wszPath);
}
if (bOk)
{
wcscat_s(wszPath, MAX_PATH, L"\\wincorlib.dll");
bOk = InstallResource(TRUE, hInstance, IDR_EP_STARTMENU, wszPath);
}
return 0;
}