mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user