Skip to content

Commit 10a4c7d

Browse files
committed
Added static assertion for LANMessage and comment for ProductInfo.
1 parent 5555883 commit 10a4c7d

File tree

1 file changed

+3
-0
lines changed
  • Core/GameEngine/Include/GameNetwork

1 file changed

+3
-0
lines changed

Core/GameEngine/Include/GameNetwork/LANAPI.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,7 @@ struct LANMessage
426426
char options[m_lanMaxOptionsLength+1];
427427
} GameOptions;
428428

429+
// ProductInfo is sent with REQUEST_PRODUCT_INFO and RESPONSE_PRODUCT_INFO
429430
struct
430431
{
431432
UnsignedInt exeCRC;
@@ -437,3 +438,5 @@ struct LANMessage
437438
};
438439
};
439440
#pragma pack(pop)
441+
442+
static_assert(sizeof(LANMessage) <= MAX_PACKET_SIZE);

0 commit comments

Comments
 (0)