Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
daxgames committed Sep 25, 2023
1 parent 7db6297 commit 759d0ed
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion launcher/src/CmderLauncher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,11 @@ cmderOptions GetOption()
int argCount;

wchar_t windowsTerminalDir[MAX_PATH] = { 0 };
wchar_t exeDir[MAX_PATH] = { 0 };

GetModuleFileName(NULL, exeDir, sizeof(exeDir));
PathRemoveFileSpec(exeDir);

PathCombine(windowsTerminalDir, exeDir, L"vendor\\windows-terminal");

szArgList = CommandLineToArgvW(GetCommandLine(), &argCount);
Expand Down Expand Up @@ -863,7 +868,12 @@ int APIENTRY _tWinMain(_In_ HINSTANCE hInstance,
cmderOptions cmderOptions = GetOption();

wchar_t windowsTerminalDir[MAX_PATH] = { 0 };
PathCombine(windowsTerminalDir, exeDir, L"vendor\\windows-terminal");
wchar_t exeDir[MAX_PATH] = { 0 };

GetModuleFileName(NULL, exeDir, sizeof(exeDir));
PathRemoveFileSpec(exeDir);

PathCombine(windowsTerminalDir, exeDir, L"vendor\\windows-terminal");

if (cmderOptions.registerApp == true)
{
Expand Down

0 comments on commit 759d0ed

Please sign in to comment.