From d136830443aa3d254d5a6fa4db6ade264e0dbcd4 Mon Sep 17 00:00:00 2001 From: amaitland Date: Sun, 23 Sep 2018 20:30:22 +1000 Subject: [PATCH] CefApp::OnBeforeCommandLineProcessing - When value empty call AppendSwitch Previously called AppendSwitchWithValue which fails now as it checks for a value Resolves #2341 --- CefSharp.Core/Internals/CefSharpApp.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/CefSharp.Core/Internals/CefSharpApp.h b/CefSharp.Core/Internals/CefSharpApp.h index b91fda832..a3302f150 100644 --- a/CefSharp.Core/Internals/CefSharpApp.h +++ b/CefSharp.Core/Internals/CefSharpApp.h @@ -120,7 +120,14 @@ namespace CefSharp // precedence than command line args provided by the app else if (!commandLine->HasSwitch(name)) { - commandLine->AppendSwitchWithValue(name, value); + if (String::IsNullOrEmpty(kvp->Value)) + { + commandLine->AppendSwitch(name); + } + else + { + commandLine->AppendSwitchWithValue(name, value); + } } } }