Use a bitwise & when checking with a mask.

svn path=/trunk/; revision=40720
This commit is contained in:
Michael Tüxen 2012-01-25 16:45:22 +00:00
parent 7b368e3895
commit 1f2cb55d2c
1 changed files with 1 additions and 1 deletions

View File

@ -2730,7 +2730,7 @@ dissect_spice_common_capabilities(tvbuff_t *tvb, proto_tree *tree, guint32 offse
proto_tree_add_boolean(auth_tree, hf_common_cap_auth_sasl, tvb, offset, 4, val);
proto_tree_add_boolean(tree, hf_common_cap_mini_header, tvb, offset, 4, val);
if (val && SPICE_COMMON_CAP_MINI_HEADER_MASK) {
if (val & SPICE_COMMON_CAP_MINI_HEADER_MASK) {
if (is_client) {
spice_info->client_mini_header = TRUE;
} else {