Fixed CommandLinePArseArgumentsA return value check, only abort if negative.
This commit is contained in:
parent
01b6d5d229
commit
1c506a3724
@ -626,7 +626,7 @@ static int rdpsnd_alsa_parse_addin_args(rdpsndDevicePlugin* device, ADDIN_ARGV*
|
||||
flags = COMMAND_LINE_SIGIL_NONE | COMMAND_LINE_SEPARATOR_COLON;
|
||||
|
||||
status = CommandLineParseArgumentsA(args->argc, (const char**) args->argv, rdpsnd_alsa_args, flags, alsa, NULL, NULL);
|
||||
if (status)
|
||||
if (status < 0)
|
||||
return status;
|
||||
|
||||
arg = rdpsnd_alsa_args;
|
||||
|
@ -548,7 +548,7 @@ static void rdpsnd_pulse_parse_addin_args(rdpsndDevicePlugin* device, ADDIN_ARGV
|
||||
|
||||
status = CommandLineParseArgumentsA(args->argc, (const char**) args->argv,
|
||||
rdpsnd_pulse_args, flags, pulse, NULL, NULL);
|
||||
if (status)
|
||||
if (status < 0)
|
||||
return;
|
||||
|
||||
arg = rdpsnd_pulse_args;
|
||||
|
@ -594,7 +594,7 @@ static void rdpsnd_process_addin_args(rdpsndPlugin* rdpsnd, ADDIN_ARGV* args)
|
||||
|
||||
status = CommandLineParseArgumentsA(args->argc, (const char**) args->argv,
|
||||
rdpsnd_args, flags, rdpsnd, NULL, NULL);
|
||||
if (status)
|
||||
if (status < 0)
|
||||
return;
|
||||
|
||||
arg = rdpsnd_args;
|
||||
|
Loading…
Reference in New Issue
Block a user