mirror of https://github.com/neutrinolabs/xrdp
Apply astyle 3.4 code formatter
This commit is contained in:
parent
ffd25af182
commit
47d4ab1339
|
@ -613,14 +613,14 @@ in_utf16_le_terminated_as_utf8_length(struct stream *s);
|
||||||
do \
|
do \
|
||||||
{ \
|
{ \
|
||||||
_v = \
|
_v = \
|
||||||
(tui64)(*((unsigned char *)_s->p)) | \
|
(tui64)(*((unsigned char *)_s->p)) | \
|
||||||
(((tui64) (*(((unsigned char *)_s->p) + 1))) << 8) | \
|
(((tui64) (*(((unsigned char *)_s->p) + 1))) << 8) | \
|
||||||
(((tui64) (*(((unsigned char *)_s->p) + 2))) << 16) | \
|
(((tui64) (*(((unsigned char *)_s->p) + 2))) << 16) | \
|
||||||
(((tui64) (*(((unsigned char *)_s->p) + 3))) << 24) | \
|
(((tui64) (*(((unsigned char *)_s->p) + 3))) << 24) | \
|
||||||
(((tui64) (*(((unsigned char *)_s->p) + 4))) << 32) | \
|
(((tui64) (*(((unsigned char *)_s->p) + 4))) << 32) | \
|
||||||
(((tui64) (*(((unsigned char *)_s->p) + 5))) << 40) | \
|
(((tui64) (*(((unsigned char *)_s->p) + 5))) << 40) | \
|
||||||
(((tui64) (*(((unsigned char *)_s->p) + 6))) << 48) | \
|
(((tui64) (*(((unsigned char *)_s->p) + 6))) << 48) | \
|
||||||
(((tui64) (*(((unsigned char *)_s->p) + 7))) << 56); \
|
(((tui64) (*(((unsigned char *)_s->p) + 7))) << 56); \
|
||||||
_s->p += 8; \
|
_s->p += 8; \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
|
|
|
@ -2655,7 +2655,7 @@ PREFIX (_selfcheck) (region_type_t *reg)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
box_type_t *pbox_p, * pbox_n;
|
box_type_t *pbox_p, *pbox_n;
|
||||||
box_type_t box;
|
box_type_t box;
|
||||||
|
|
||||||
pbox_p = PIXREGION_RECTS (reg);
|
pbox_p = PIXREGION_RECTS (reg);
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
|
|
||||||
#define CRC_INIT 0xFFFF
|
#define CRC_INIT 0xFFFF
|
||||||
#define CRC(_crcval, _newchar) _crcval = \
|
#define CRC(_crcval, _newchar) _crcval = \
|
||||||
((_crcval) >> 8) ^ g_crc_table[((_crcval) ^ (_newchar)) & 0x00ff]
|
((_crcval) >> 8) ^ g_crc_table[((_crcval) ^ (_newchar)) & 0x00ff]
|
||||||
|
|
||||||
/* CRC16 defs */
|
/* CRC16 defs */
|
||||||
static const tui16 g_crc_table[256] =
|
static const tui16 g_crc_table[256] =
|
||||||
|
|
|
@ -1945,7 +1945,7 @@ lfreerdp_pre_connect(freerdp *instance)
|
||||||
(mod->client_info.rail_support_level > 0))
|
(mod->client_info.rail_support_level > 0))
|
||||||
{
|
{
|
||||||
instance->settings->performance_flags |= (PERF_DISABLE_WALLPAPER |
|
instance->settings->performance_flags |= (PERF_DISABLE_WALLPAPER |
|
||||||
PERF_DISABLE_FULLWINDOWDRAG);
|
PERF_DISABLE_FULLWINDOWDRAG);
|
||||||
LOG(LOG_LEVEL_DEBUG, "Add in performance setting for Railsupport:"
|
LOG(LOG_LEVEL_DEBUG, "Add in performance setting for Railsupport:"
|
||||||
"[0x%08x]", PERF_DISABLE_WALLPAPER |
|
"[0x%08x]", PERF_DISABLE_WALLPAPER |
|
||||||
PERF_DISABLE_FULLWINDOWDRAG);
|
PERF_DISABLE_FULLWINDOWDRAG);
|
||||||
|
|
|
@ -1390,9 +1390,9 @@ devredir_get_dir_listing(struct state_dirscan *fusep, tui32 device_id,
|
||||||
CreateDisposition = CD_FILE_OPEN;
|
CreateDisposition = CD_FILE_OPEN;
|
||||||
|
|
||||||
rval = devredir_send_drive_create_request(device_id, irp->pathname,
|
rval = devredir_send_drive_create_request(device_id, irp->pathname,
|
||||||
DesiredAccess, CreateOptions,
|
DesiredAccess, CreateOptions,
|
||||||
0, CreateDisposition,
|
0, CreateDisposition,
|
||||||
irp->CompletionId);
|
irp->CompletionId);
|
||||||
|
|
||||||
LOG_DEVEL(LOG_LEVEL_DEBUG, "looking for device_id=%d path=%s", device_id, irp->pathname);
|
LOG_DEVEL(LOG_LEVEL_DEBUG, "looking for device_id=%d path=%s", device_id, irp->pathname);
|
||||||
|
|
||||||
|
@ -1457,10 +1457,10 @@ devredir_lookup_entry(struct state_lookup *fusep, tui32 device_id,
|
||||||
device_id, irp->pathname, irp->CompletionId);
|
device_id, irp->pathname, irp->CompletionId);
|
||||||
|
|
||||||
rval = devredir_send_drive_create_request(device_id,
|
rval = devredir_send_drive_create_request(device_id,
|
||||||
irp->pathname,
|
irp->pathname,
|
||||||
DesiredAccess, CreateOptions,
|
DesiredAccess, CreateOptions,
|
||||||
0, CreateDisposition,
|
0, CreateDisposition,
|
||||||
irp->CompletionId);
|
irp->CompletionId);
|
||||||
}
|
}
|
||||||
|
|
||||||
return rval;
|
return rval;
|
||||||
|
@ -1526,10 +1526,10 @@ devredir_setattr_for_entry(struct state_setattr *fusep, tui32 device_id,
|
||||||
device_id, irp->pathname);
|
device_id, irp->pathname);
|
||||||
|
|
||||||
rval = devredir_send_drive_create_request(device_id,
|
rval = devredir_send_drive_create_request(device_id,
|
||||||
irp->pathname,
|
irp->pathname,
|
||||||
DesiredAccess, CreateOptions,
|
DesiredAccess, CreateOptions,
|
||||||
0, CreateDisposition,
|
0, CreateDisposition,
|
||||||
irp->CompletionId);
|
irp->CompletionId);
|
||||||
}
|
}
|
||||||
|
|
||||||
return rval;
|
return rval;
|
||||||
|
@ -1578,10 +1578,10 @@ devredir_file_create(struct state_create *fusep, tui32 device_id,
|
||||||
CreateDisposition = 0x02; /* got this value from windows */
|
CreateDisposition = 0x02; /* got this value from windows */
|
||||||
|
|
||||||
rval = devredir_send_drive_create_request(device_id, path,
|
rval = devredir_send_drive_create_request(device_id, path,
|
||||||
DesiredAccess, CreateOptions,
|
DesiredAccess, CreateOptions,
|
||||||
FileAttributes,
|
FileAttributes,
|
||||||
CreateDisposition,
|
CreateDisposition,
|
||||||
irp->CompletionId);
|
irp->CompletionId);
|
||||||
}
|
}
|
||||||
|
|
||||||
return rval;
|
return rval;
|
||||||
|
@ -1640,10 +1640,10 @@ devredir_file_open(struct state_open *fusep, tui32 device_id,
|
||||||
CreateDisposition = CD_FILE_OPEN; // WAS 1
|
CreateDisposition = CD_FILE_OPEN; // WAS 1
|
||||||
|
|
||||||
rval = devredir_send_drive_create_request(device_id, path,
|
rval = devredir_send_drive_create_request(device_id, path,
|
||||||
DesiredAccess, CreateOptions,
|
DesiredAccess, CreateOptions,
|
||||||
FileAttributes,
|
FileAttributes,
|
||||||
CreateDisposition,
|
CreateDisposition,
|
||||||
irp->CompletionId);
|
irp->CompletionId);
|
||||||
}
|
}
|
||||||
|
|
||||||
return rval;
|
return rval;
|
||||||
|
@ -1720,9 +1720,9 @@ devredir_rmdir_or_file(struct state_remove *fusep, tui32 device_id,
|
||||||
CreateDisposition = 0x01; /* got this value from windows */
|
CreateDisposition = 0x01; /* got this value from windows */
|
||||||
|
|
||||||
rval = devredir_send_drive_create_request(device_id, path,
|
rval = devredir_send_drive_create_request(device_id, path,
|
||||||
DesiredAccess, CreateOptions,
|
DesiredAccess, CreateOptions,
|
||||||
0, CreateDisposition,
|
0, CreateDisposition,
|
||||||
irp->CompletionId);
|
irp->CompletionId);
|
||||||
}
|
}
|
||||||
|
|
||||||
return rval;
|
return rval;
|
||||||
|
@ -1898,10 +1898,10 @@ int devredir_file_rename(struct state_rename *fusep, tui32 device_id,
|
||||||
CreateDisposition = CD_FILE_OPEN; // WAS 1
|
CreateDisposition = CD_FILE_OPEN; // WAS 1
|
||||||
|
|
||||||
rval = devredir_send_drive_create_request(device_id, old_name,
|
rval = devredir_send_drive_create_request(device_id, old_name,
|
||||||
DesiredAccess, CreateOptions,
|
DesiredAccess, CreateOptions,
|
||||||
FileAttributes,
|
FileAttributes,
|
||||||
CreateDisposition,
|
CreateDisposition,
|
||||||
irp->CompletionId);
|
irp->CompletionId);
|
||||||
}
|
}
|
||||||
|
|
||||||
return rval;
|
return rval;
|
||||||
|
|
Loading…
Reference in New Issue