CefApp::OnBeforeCommandLineProcessing - When value empty call AppendSwitch

Previously called AppendSwitchWithValue which fails now as it checks for a value

Resolves #2341
This commit is contained in:
amaitland
2018-09-23 20:30:22 +10:00
parent a1fbb578df
commit d136830443
+8 -1
View File
@@ -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);
}
}
}
}