mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
libfreerdp-utils: replace ARRAY_SIZE custom macro with ARRAYSIZE() windows macro
This commit is contained in:
@@ -380,13 +380,13 @@ static BYTE server_app_get_resp_app_id[] =
|
||||
|
||||
|
||||
#define EMULATE_SERVER_SEND_CHANNEL_DATA(inst, byte_array) \
|
||||
emulate_server_send_channel_data(inst, byte_array, ARRAY_SIZE(byte_array))
|
||||
emulate_server_send_channel_data(inst, byte_array, ARRAYSIZE(byte_array))
|
||||
|
||||
#define STREAM_EQUAL_TO_DUMP(stream, dump) \
|
||||
(stream_equal_dump((stream)->data, (stream)->size, dump, ARRAY_SIZE(dump)))
|
||||
(stream_equal_dump((stream)->data, (stream)->size, dump, ARRAYSIZE(dump)))
|
||||
|
||||
#define UNICODE_STRING_EQUAL_TO_DUMP(ustring, dump) \
|
||||
(stream_equal_dump((ustring)->string, (ustring)->length, dump, ARRAY_SIZE(dump)))
|
||||
(stream_equal_dump((ustring)->string, (ustring)->length, dump, ARRAYSIZE(dump)))
|
||||
|
||||
typedef struct
|
||||
{
|
||||
@@ -521,7 +521,7 @@ static void emulate_server_send_channel_data(
|
||||
static void save_dump(void* data, size_t size)
|
||||
{
|
||||
thread_param * p = global_thread_params;
|
||||
if (p->in_streams_number < ARRAY_SIZE(p->in_streams))
|
||||
if (p->in_streams_number < ARRAYSIZE(p->in_streams))
|
||||
{
|
||||
STREAM* s = &p->in_streams[p->in_streams_number];
|
||||
s->data = malloc(size);
|
||||
@@ -631,7 +631,7 @@ static void process_events_and_channel_data_from_plugin(thread_param* param)
|
||||
counter);
|
||||
|
||||
// add to global event list
|
||||
if (param->in_events_number < ARRAY_SIZE(param->in_events))
|
||||
if (param->in_events_number < ARRAYSIZE(param->in_events))
|
||||
{
|
||||
save_event(event, ¶m->in_events[param->in_events_number]);
|
||||
param->in_events_number++;
|
||||
|
||||
@@ -254,7 +254,7 @@ void test_rlgr(void)
|
||||
{
|
||||
int n;
|
||||
|
||||
n = rfx_rlgr_decode(RLGR3, y_data, sizeof(y_data), buffer, ARRAY_SIZE(buffer));
|
||||
n = rfx_rlgr_decode(RLGR3, y_data, sizeof(y_data), buffer, ARRAYSIZE(buffer));
|
||||
|
||||
//printf("RLGR decode %d bytes to %d values.", sizeof(y_data), n);
|
||||
//dump_buffer(buffer, n);
|
||||
|
||||
Reference in New Issue
Block a user