diff --git a/server/proxy/pf_channel.c b/server/proxy/pf_channel.c index baec62ffe..bbbb5549b 100644 --- a/server/proxy/pf_channel.c +++ b/server/proxy/pf_channel.c @@ -94,8 +94,8 @@ PfChannelResult channelTracker_update(ChannelStateTracker* tracker, const BYTE* UINT32 flags, size_t totalSize) { PfChannelResult result = PF_CHANNEL_RESULT_ERROR; - BOOL firstPacket = (flags & CHANNEL_FLAG_FIRST); - BOOL lastPacket = (flags & CHANNEL_FLAG_LAST); + BOOL firstPacket = (flags & CHANNEL_FLAG_FIRST) != 0; + BOOL lastPacket = (flags & CHANNEL_FLAG_LAST) != 0; WINPR_ASSERT(tracker);