mirror of
https://github.com/cmderdev/cmder.git
synced 2025-01-11 00:39:08 +08:00
fix
This commit is contained in:
parent
7db6297347
commit
759d0edd81
@ -701,6 +701,11 @@ cmderOptions GetOption()
|
|||||||
int argCount;
|
int argCount;
|
||||||
|
|
||||||
wchar_t windowsTerminalDir[MAX_PATH] = { 0 };
|
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");
|
PathCombine(windowsTerminalDir, exeDir, L"vendor\\windows-terminal");
|
||||||
|
|
||||||
szArgList = CommandLineToArgvW(GetCommandLine(), &argCount);
|
szArgList = CommandLineToArgvW(GetCommandLine(), &argCount);
|
||||||
@ -863,7 +868,12 @@ int APIENTRY _tWinMain(_In_ HINSTANCE hInstance,
|
|||||||
cmderOptions cmderOptions = GetOption();
|
cmderOptions cmderOptions = GetOption();
|
||||||
|
|
||||||
wchar_t windowsTerminalDir[MAX_PATH] = { 0 };
|
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)
|
if (cmderOptions.registerApp == true)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user