Fixed CommandLinePArseArgumentsA return value check, only abort if negative.

This commit is contained in:
Armin Novak 2013-09-20 10:11:05 +02:00
parent 01b6d5d229
commit 1c506a3724
3 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;