libfreerdp-core: fix an trivial mistake in reading codec caps.
authorVic Lee <llyzs@163.com>
Tue, 4 Oct 2011 17:24:57 +0000 (01:24 +0800)
committerVic Lee <llyzs@163.com>
Tue, 4 Oct 2011 17:24:57 +0000 (01:24 +0800)
libfreerdp-core/capabilities.c

index edef6d4..202b599 100644 (file)
@@ -1381,7 +1381,7 @@ void rdp_read_bitmap_codecs_capability_set(STREAM* s, rdpSettings* settings)
                        stream_read_uint8(s, settings->rfx_codec_id);
                        settings->rfx_codec = True;
                }
-               if (settings->server_mode && strncmp((char*)stream_get_tail(s),CODEC_GUID_NSCODEC, 16) == 0)
+               else if (settings->server_mode && strncmp((char*)stream_get_tail(s),CODEC_GUID_NSCODEC, 16) == 0)
                {
                        stream_seek(s, 16); /*codec GUID (16 bytes) */
                        stream_read_uint8(s, settings->ns_codec_id);