GUIで引数付きで起動してもファイルパスが設定されないことがあるのを修正

This commit is contained in:
lltcggie 2016-05-07 07:59:08 +09:00
parent 711810b985
commit c522af6275

View File

@ -1835,8 +1835,6 @@ void DialogEvent::Create(HWND hWnd, WPARAM wParam, LPARAM lParam, LPVOID lpData)
SetDepthAndQuality(false);
if (isArgStartAuto) // 引数指定されたら自動で実行(フラグ設定時のみ)
{
int nArgs = 0;
LPTSTR *lplpszArgs;
lplpszArgs = CommandLineToArgvW(GetCommandLine(), &nArgs);
@ -1858,15 +1856,16 @@ void DialogEvent::Create(HWND hWnd, WPARAM wParam, LPARAM lParam, LPVOID lpData)
OnSetInputFilePath();
}
if (isArgStartAuto) // 引数指定されたら自動で実行(フラグ設定時のみ)
{
isCommandLineStart = true;
::PostMessage(GetDlgItem(dh, IDC_BUTTON_EXEC), BM_CLICK, 0, 0);
}
}
LocalFree(lplpszArgs);
}
}
}
void DialogEvent::Cancel(HWND hWnd, WPARAM wParam, LPARAM lParam, LPVOID lpData)
{