diff --git a/CefSharp.BrowserSubprocess.Core/BrowserSubprocessExecutable.h b/CefSharp.BrowserSubprocess.Core/BrowserSubprocessExecutable.h index 3d37b0b795..7432bf4e74 100644 --- a/CefSharp.BrowserSubprocess.Core/BrowserSubprocessExecutable.h +++ b/CefSharp.BrowserSubprocess.Core/BrowserSubprocessExecutable.h @@ -125,19 +125,13 @@ namespace CefSharp //Lower the shutdown priority so the browser process is shutdown first (Issue #3155) //The system terminates the process without displaying a retry dialog box for the user. //Crashpad is lower than other sub processes so it can still monitor process exit crashes. - if (!SetProcessShutdownParameters(0x100, SHUTDOWN_NORETRY)) - { - LOG(ERROR) << "SetProcessShutdownParameters - Crashpad"; - } + SetProcessShutdownParameters(0x100, SHUTDOWN_NORETRY); } else { //Lower the shutdown priority so the browser process is shutdown first (Issue #3155) //The system terminates the process without displaying a retry dialog box for the user. - if (!SetProcessShutdownParameters(0x280 - 100, SHUTDOWN_NORETRY)) - { - LOG(ERROR) << "SetProcessShutdownParameters - Sub Process"; - } + SetProcessShutdownParameters(0x200, SHUTDOWN_NORETRY); parentProcessId = int::Parse(CommandLineArgsParser::GetArgumentValue(args, CefSharpArguments::HostProcessIdArgument)); if (CommandLineArgsParser::HasArgument(args, CefSharpArguments::ExitIfParentProcessClosed))