mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-11-29 17:24:47 +00:00
Assert that the port numbers are set prior to being used
This commit is contained in:
1 parent
cdda221d64
commit
3b9d8a3176
6 files changed
+29
-6
No files matched your search
@@ -46,6 +46,8 @@ static void VideoPingThreadProc(void* context) {
|
||||
char pingData[] = { 0x50, 0x49, 0x4E, 0x47 };
|
||||
LC_SOCKADDR saddr;
|
||||
|
||||
LC_ASSERT(VideoPortNumber != 0);
|
||||
|
||||
memcpy(&saddr, &RemoteAddr, sizeof(saddr));
|
||||
SET_PORT(&saddr, VideoPortNumber);
|
||||
|
||||
|
||||
Reference in new issue
Block a user