Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
136d4603
Commit
136d4603
authored
Jun 14, 2020
by
Paul Gofman
Committed by
Alexandre Julliard
Jun 15, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netio.sys: Implement wsk_close_socket() function.
Signed-off-by:
Paul Gofman
<
pgofman@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9822adbb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
netio.c
dlls/netio.sys/netio.c
+16
-2
No files found.
dlls/netio.sys/netio.c
View file @
136d4603
...
...
@@ -52,6 +52,11 @@ struct wsk_socket_internal
void
*
client_context
;
};
static
inline
struct
wsk_socket_internal
*
wsk_socket_internal_from_wsk_socket
(
WSK_SOCKET
*
wsk_socket
)
{
return
CONTAINING_RECORD
(
wsk_socket
,
struct
wsk_socket_internal
,
wsk_socket
);
}
static
NTSTATUS
sock_error_to_ntstatus
(
DWORD
err
)
{
switch
(
err
)
...
...
@@ -114,9 +119,18 @@ static NTSTATUS WINAPI wsk_control_socket(WSK_SOCKET *socket, WSK_CONTROL_SOCKET
static
NTSTATUS
WINAPI
wsk_close_socket
(
WSK_SOCKET
*
socket
,
IRP
*
irp
)
{
FIXME
(
"socket %p, irp %p stub.
\n
"
,
socket
,
irp
);
struct
wsk_socket_internal
*
s
=
wsk_socket_internal_from_wsk_socket
(
socket
);
NTSTATUS
status
;
return
STATUS_NOT_IMPLEMENTED
;
TRACE
(
"socket %p, irp %p.
\n
"
,
socket
,
irp
);
status
=
closesocket
(
s
->
s
)
?
sock_error_to_ntstatus
(
WSAGetLastError
())
:
STATUS_SUCCESS
;
heap_free
(
socket
);
irp
->
IoStatus
.
Information
=
0
;
dispatch_irp
(
irp
,
status
);
return
status
?
status
:
STATUS_PENDING
;
}
static
NTSTATUS
WINAPI
wsk_bind
(
WSK_SOCKET
*
socket
,
SOCKADDR
*
local_address
,
ULONG
flags
,
IRP
*
irp
)
...
...
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