Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
5ead4e1e
Commit
5ead4e1e
authored
Jun 23, 2020
by
Paul Gofman
Committed by
Alexandre Julliard
Jun 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
>
parent
b7ccb9d0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
driver.h
dlls/ntoskrnl.exe/tests/driver.h
+2
-0
driver4.c
dlls/ntoskrnl.exe/tests/driver4.c
+1
-1
ntoskrnl.c
dlls/ntoskrnl.exe/tests/ntoskrnl.c
+1
-1
No files found.
dlls/ntoskrnl.exe/tests/driver.h
View file @
5ead4e1e
...
@@ -55,3 +55,5 @@ static inline char *drv_strrchr( const char *str, char ch )
...
@@ -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
dlls/ntoskrnl.exe/tests/driver4.c
View file @
5ead4e1e
...
@@ -243,7 +243,7 @@ static void test_wsk_listen_socket(void)
...
@@ -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
);
...
...
dlls/ntoskrnl.exe/tests/ntoskrnl.c
View file @
5ead4e1e
...
@@ -532,7 +532,7 @@ static DWORD WINAPI wsk_test_thread(void *parameter)
...
@@ -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
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment