Indentation/syntax changes after running indent-all.sh
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@409 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
parent
0accb413ac
commit
8da3b51a70
37
rdp.c
37
rdp.c
@ -179,13 +179,9 @@ rdp_send_logon_info(uint32 flags, char *domain, char *user,
|
||||
2 + // len_program
|
||||
2 + // len_directory
|
||||
(0 < len_domain ? len_domain : 2) + // domain
|
||||
len_user +
|
||||
(flags & RDP_LOGON_AUTO ? len_password : 0) +
|
||||
0 + // We have no 512 byte BLOB. Perhaps we must?
|
||||
len_user + (flags & RDP_LOGON_AUTO ? len_password : 0) + 0 + // We have no 512 byte BLOB. Perhaps we must?
|
||||
(flags & RDP_LOGON_BLOB && !(flags & RDP_LOGON_AUTO) ? 2 : 0) + // After the BLOB is a unknown int16. If there is a BLOB, that is.
|
||||
(0 < len_program ? len_program : 2) +
|
||||
(0 < len_directory ? len_directory : 2) +
|
||||
2 + // Unknown (2)
|
||||
(0 < len_program ? len_program : 2) + (0 < len_directory ? len_directory : 2) + 2 + // Unknown (2)
|
||||
2 + // Client ip length
|
||||
len_ip + // Client ip
|
||||
2 + // DLL string length
|
||||
@ -209,7 +205,8 @@ rdp_send_logon_info(uint32 flags, char *domain, char *user,
|
||||
out_uint16_le(s, len_password);
|
||||
|
||||
}
|
||||
if (flags & RDP_LOGON_BLOB && !(flags & RDP_LOGON_AUTO)) {
|
||||
if (flags & RDP_LOGON_BLOB && !(flags & RDP_LOGON_AUTO))
|
||||
{
|
||||
out_uint16_le(s, 0);
|
||||
}
|
||||
out_uint16_le(s, len_program);
|
||||
@ -223,18 +220,25 @@ rdp_send_logon_info(uint32 flags, char *domain, char *user,
|
||||
{
|
||||
rdp_out_unistr(s, password, len_password);
|
||||
}
|
||||
if (flags & RDP_LOGON_BLOB && !(flags & RDP_LOGON_AUTO)) {
|
||||
if (flags & RDP_LOGON_BLOB && !(flags & RDP_LOGON_AUTO))
|
||||
{
|
||||
out_uint16_le(s, 0);
|
||||
}
|
||||
if (0 < len_program) {
|
||||
if (0 < len_program)
|
||||
{
|
||||
rdp_out_unistr(s, program, len_program);
|
||||
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
out_uint16_le(s, 0);
|
||||
}
|
||||
if (0 < len_directory) {
|
||||
if (0 < len_directory)
|
||||
{
|
||||
rdp_out_unistr(s, directory, len_directory);
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
out_uint16_le(s, 0);
|
||||
}
|
||||
out_uint16_le(s, 2);
|
||||
@ -244,8 +248,7 @@ rdp_send_logon_info(uint32 flags, char *domain, char *user,
|
||||
rdp_out_unistr(s, "C:\\WINNT\\System32\\mstscax.dll", len_dll);
|
||||
out_uint16_le(s, 0xffc4);
|
||||
out_uint16_le(s, 0xffff);
|
||||
rdp_out_unistr(s, "GTB, normaltid",
|
||||
2*strlen("GTB, normaltid"));
|
||||
rdp_out_unistr(s, "GTB, normaltid", 2 * strlen("GTB, normaltid"));
|
||||
out_uint8s(s, 62 - 2 * strlen("GTB, normaltid"));
|
||||
|
||||
|
||||
@ -255,8 +258,7 @@ rdp_send_logon_info(uint32 flags, char *domain, char *user,
|
||||
out_uint32_le(s, 0);
|
||||
out_uint32_le(s, 0);
|
||||
|
||||
rdp_out_unistr(s, "GTB, sommartid",
|
||||
2*strlen("GTB, sommartid"));
|
||||
rdp_out_unistr(s, "GTB, sommartid", 2 * strlen("GTB, sommartid"));
|
||||
out_uint8s(s, 62 - 2 * strlen("GTB, sommartid"));
|
||||
|
||||
out_uint32_le(s, 0x30000);
|
||||
@ -882,6 +884,9 @@ BOOL
|
||||
rdp_connect(char *server, uint32 flags, char *domain, char *password,
|
||||
char *command, char *directory)
|
||||
{
|
||||
if (use_rdp5)
|
||||
channels_init();
|
||||
|
||||
if (!sec_connect(server, username))
|
||||
return False;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user