Code review feedback from FreeRDP folks

Before rolling into path for easy review.
This commit is contained in:
Steve Pronovost 2021-10-20 09:06:16 -07:00 committed by akallabeth
parent e452467cd3
commit 78fd3b8d6c
3 changed files with 5 additions and 2 deletions

View File

@ -82,7 +82,6 @@ struct _GFXREDIR_CAPS_HEADER
UINT32 signature; // GFXREDIR_CAPS_SIGNATURE
UINT32 version; // GFXREDIR_CAPS_VERSION
UINT32 length; // GFXREDIR_CAPS_HEADER_SIZE + size of capsData
const BYTE capsData[0]; // GFXREDIR_CAPS_HEADER.length - GFXREDIR_CAPS_HEADER_SIZE
};
typedef struct _GFXREDIR_CAPS_HEADER GFXREDIR_CAPS_HEADER;

View File

@ -254,7 +254,7 @@ struct rdp_update
wStream* us;
UINT16 numberOrders;
UINT16 offsetOrders; /* the offset to patch numberOrders in the stream */
size_t offsetOrders; /* the offset to patch numberOrders in the stream */
BOOL combineUpdates;
rdpBounds currentBounds;
rdpBounds previousBounds;

View File

@ -321,7 +321,11 @@ BOOL freerdp_peer_set_local_and_hostname(freerdp_peer* client,
}
#ifndef _WIN32
#ifdef AF_VSOCK
else if (peer_addr->ss_family == AF_UNIX || peer_addr->ss_family == AF_VSOCK)
#else
else if (peer_addr->ss_family == AF_UNIX)
#endif
client->local = TRUE;
#endif