ntoskrnl/tests: Use the same sin port as ws2_32 tests.

Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Paul Gofman 2020-06-23 00:27:03 +03:00 committed by Alexandre Julliard
parent b7ccb9d06a
commit 5ead4e1e69
3 changed files with 4 additions and 2 deletions

View File

@ -55,3 +55,5 @@ static inline char *drv_strrchr( const char *str, char ch )
do { if (*str == ch) ret = (char *)(ULONG_PTR)str; } while (*str++);
return ret;
}
#define SERVER_LISTEN_PORT 9374

View File

@ -243,7 +243,7 @@ static void test_wsk_listen_socket(void)
memset(&addr, 0, sizeof(addr));
addr.sin_family = AF_INET;
addr.sin_port = htons(12345);
addr.sin_port = htons(SERVER_LISTEN_PORT);
IoReuseIrp(wsk_irp, STATUS_UNSUCCESSFUL);
IoSetCompletionRoutine(wsk_irp, irp_completion_routine, &irp_complete_event, TRUE, TRUE, TRUE);

View File

@ -532,7 +532,7 @@ static DWORD WINAPI wsk_test_thread(void *parameter)
memset(&addr, 0, sizeof(addr));
addr.sin_family = AF_INET;
addr.sin_port = htons(12345);
addr.sin_port = htons(SERVER_LISTEN_PORT);
addr.sin_addr.s_addr = htonl(0x7f000001);
ret = connect(s, (struct sockaddr *)&addr, sizeof(addr));