Re: [Freerdp-devel] stream_read_uint32_be macro

2011-10-28 Thread Marc-André Moreau
Hi Jiten, The macro is used in ntlmssp.c in order to write a bit map using the big endian macro. It's actual quite sensitive code, so be careful when touching it, it's easy to break. In this case I suggest you fix the uint32_be macro and add a new one called uint32_bm that is to be used by ntlmssp

[Freerdp-devel] stream_read_uint32_be macro

2011-10-28 Thread jiten pathy
Hi all, This is how stream_read_uint32_be is implemented. #define stream_read_uint32_be(_s, _v) do { _v = \ (((uint32)(*(_s->p))) << 8) + \ (((uint32)(*(_s->p + 1 + \ (((uint32)(*(_s->p + 2))) << 24) + \ (((uint32)(*(_s->p + 3))) << 16); \ _s->p += 4; } while (0) But this re