Commit e70dca69 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Vitaly Lipatov

kernelbase: Remove "-firstrundlg" parameter from command line for CryptoPro 5.0…

kernelbase: Remove "-firstrundlg" parameter from command line for CryptoPro 5.0 installer (eterbug #13466). Signed-off-by: 's avatarDmitry Timoshkov <dmitry@baikal.ru>
parent a9f7033f
......@@ -567,6 +567,22 @@ BOOL WINAPI DECLSPEC_HOTPATCH CreateProcessInternalW( HANDLE token, const WCHAR
if (new_token) FIXME( "No support for returning created process token\n" );
/* Remove "-firstrundlg" parameter from command line for CryptoPro 5.0 installer (eterbug #13466). */
if (cmd_line)
{
WCHAR *p;
p = wcsstr(cmd_line, L"CryptoPro_CSP_5.0");
if (p)
{
p = wcsstr(p, L"-firstrundlg");
if (p)
{
memcpy(p, L" ", 12 * sizeof(WCHAR));
TRACE("fixed cmdline %s\n", debugstr_w(cmd_line));
}
}
}
if (app_name)
{
if (!cmd_line || !cmd_line[0]) /* no command-line, create one */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment