From 89fa8f168036c0f870459a9c5b31780c5b35146a Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Wed, 26 Dec 2012 15:29:54 -0800 Subject: [PATCH] Fixed strcmp() logic around console and console-audio parameters. --- protocols/rdp/src/client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocols/rdp/src/client.c b/protocols/rdp/src/client.c index bf95175d..147f7d62 100644 --- a/protocols/rdp/src/client.c +++ b/protocols/rdp/src/client.c @@ -378,8 +378,8 @@ int guac_client_init(guac_client* client, int argc, char** argv) { settings = rdp_inst->settings; /* Console */ - settings->console_session = (strcmp(argv[IDX_CONSOLE], "true") != 0); - settings->console_audio = (strcmp(argv[IDX_CONSOLE_AUDIO], "true") != 0); + settings->console_session = (strcmp(argv[IDX_CONSOLE], "true") == 0); + settings->console_audio = (strcmp(argv[IDX_CONSOLE_AUDIO], "true") == 0); /* --no-auth */ settings->authentication = false;