Apply correct exit code to xfreerdp application for log off from certain flavors of Windows.

This commit is contained in:
bjcollins 2015-02-09 17:15:07 -06:00
parent ed3d9526b2
commit bb87599f80

View File

@ -1558,7 +1558,7 @@ DWORD xf_exit_code_from_disconnect_reason(DWORD reason)
else if (reason >= 0x10c9 && reason <= 0x1193)
reason = XF_EXIT_RDP;
/* There's no need to test protocol-independent codes: they match */
else if (!(reason <= 0xB))
else if (!(reason <= 0xC))
reason = XF_EXIT_UNKNOWN;
return reason;