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:
parent
b7ccb9d06a
commit
5ead4e1e69
|
@ -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++);
|
do { if (*str == ch) ret = (char *)(ULONG_PTR)str; } while (*str++);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define SERVER_LISTEN_PORT 9374
|
||||||
|
|
|
@ -243,7 +243,7 @@ static void test_wsk_listen_socket(void)
|
||||||
|
|
||||||
memset(&addr, 0, sizeof(addr));
|
memset(&addr, 0, sizeof(addr));
|
||||||
addr.sin_family = AF_INET;
|
addr.sin_family = AF_INET;
|
||||||
addr.sin_port = htons(12345);
|
addr.sin_port = htons(SERVER_LISTEN_PORT);
|
||||||
|
|
||||||
IoReuseIrp(wsk_irp, STATUS_UNSUCCESSFUL);
|
IoReuseIrp(wsk_irp, STATUS_UNSUCCESSFUL);
|
||||||
IoSetCompletionRoutine(wsk_irp, irp_completion_routine, &irp_complete_event, TRUE, TRUE, TRUE);
|
IoSetCompletionRoutine(wsk_irp, irp_completion_routine, &irp_complete_event, TRUE, TRUE, TRUE);
|
||||||
|
|
|
@ -532,7 +532,7 @@ static DWORD WINAPI wsk_test_thread(void *parameter)
|
||||||
|
|
||||||
memset(&addr, 0, sizeof(addr));
|
memset(&addr, 0, sizeof(addr));
|
||||||
addr.sin_family = AF_INET;
|
addr.sin_family = AF_INET;
|
||||||
addr.sin_port = htons(12345);
|
addr.sin_port = htons(SERVER_LISTEN_PORT);
|
||||||
addr.sin_addr.s_addr = htonl(0x7f000001);
|
addr.sin_addr.s_addr = htonl(0x7f000001);
|
||||||
|
|
||||||
ret = connect(s, (struct sockaddr *)&addr, sizeof(addr));
|
ret = connect(s, (struct sockaddr *)&addr, sizeof(addr));
|
||||||
|
|
Loading…
Reference in New Issue