server: fix incorrect flag in license module.

This commit is contained in:
Vic Lee 2011-08-21 10:57:01 +08:00
parent 7216323e07
commit eca166a22d

View File

@ -159,7 +159,11 @@ void license_send(rdpLicense* license, STREAM* s, uint8 type)
sec_flags = SEC_LICENSE_PKT; sec_flags = SEC_LICENSE_PKT;
wMsgSize = length - LICENSE_PACKET_HEADER_LENGTH + 4; wMsgSize = length - LICENSE_PACKET_HEADER_LENGTH + 4;
flags = EXTENDED_ERROR_MSG_SUPPORTED | PREAMBLE_VERSION_3_0; /**
* Using EXTENDED_ERROR_MSG_SUPPORTED here would cause mstsc to crash when
* running in server mode! This flag seems to be incorrectly documented.
*/
flags = PREAMBLE_VERSION_3_0;
rdp_write_header(license->rdp, s, length, MCS_GLOBAL_CHANNEL_ID); rdp_write_header(license->rdp, s, length, MCS_GLOBAL_CHANNEL_ID);
rdp_write_security_header(s, sec_flags); rdp_write_security_header(s, sec_flags);