Allow window orders with AllowUnanouncedOrdersFromServer
This commit is contained in:
parent
c0b13cf43f
commit
dd80a09781
@ -409,24 +409,27 @@ static BOOL window_order_supported(const rdpSettings* settings, UINT32 fieldFlag
|
||||
{
|
||||
const UINT32 mask = (WINDOW_ORDER_FIELD_CLIENT_AREA_SIZE || WINDOW_ORDER_FIELD_RP_CONTENT ||
|
||||
WINDOW_ORDER_FIELD_ROOT_PARENT);
|
||||
BOOL dresult;
|
||||
|
||||
if (!settings)
|
||||
return FALSE;
|
||||
|
||||
/* See [MS-RDPERP] 2.2.1.1.2 Window List Capability Set */
|
||||
dresult = settings->AllowUnanouncedOrdersFromServer;
|
||||
|
||||
switch (settings->RemoteWndSupportLevel)
|
||||
{
|
||||
case WINDOW_LEVEL_SUPPORTED_EX:
|
||||
return TRUE;
|
||||
|
||||
case WINDOW_LEVEL_SUPPORTED:
|
||||
return (fieldFlags & mask) == 0;
|
||||
return ((fieldFlags & mask) == 0) || dresult;
|
||||
|
||||
case WINDOW_LEVEL_NOT_SUPPORTED:
|
||||
return FALSE;
|
||||
return dresult;
|
||||
|
||||
default:
|
||||
return FALSE;
|
||||
return dresult;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user