mirror of https://github.com/neutrinolabs/xrdp
Remove s_check() macro
This commit is contained in:
parent
a13742f097
commit
e6c098e750
|
@ -89,9 +89,6 @@ parser_stream_overflow_check(const struct stream *s, int n, int is_out,
|
|||
# define S_CHECK_REM_OUT(s,n)
|
||||
#endif
|
||||
|
||||
/******************************************************************************/
|
||||
#define s_check(s) s_check_rem(s, 0)
|
||||
|
||||
/******************************************************************************/
|
||||
#define s_check_rem(s, n) ((s)->p + (n) <= (s)->end)
|
||||
|
||||
|
|
|
@ -1334,7 +1334,7 @@ clipboard_process_data_response(struct stream *s, int clip_msg_status,
|
|||
return 0;
|
||||
}
|
||||
index = 0;
|
||||
while (s_check(s))
|
||||
while (s_check_rem(s, 2))
|
||||
{
|
||||
in_uint16_le(s, wchr);
|
||||
wtext[index] = wchr;
|
||||
|
|
|
@ -575,7 +575,7 @@ handle_cb_format_data_response(struct vnc *v, struct stream *s)
|
|||
{
|
||||
case CF_TEXT:
|
||||
lastc = '\0';
|
||||
while (s_check(s))
|
||||
while (s_check_rem(s, 1))
|
||||
{
|
||||
in_uint8(s, c);
|
||||
if (c == '\n' && lastc == '\r')
|
||||
|
|
Loading…
Reference in New Issue