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
f5627617
Commit
f5627617
authored
Jun 17, 2022
by
Huw Davies
Committed by
Alexandre Julliard
Jun 21, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nsiproxy: Pass a ptr to receive the ICMP handle.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
parent
7bd58ba1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
device.c
dlls/nsiproxy.sys/device.c
+3
-1
icmp_echo.c
dlls/nsiproxy.sys/icmp_echo.c
+3
-3
nsiproxy_private.h
dlls/nsiproxy.sys/nsiproxy_private.h
+1
-1
No files found.
dlls/nsiproxy.sys/device.c
View file @
f5627617
...
...
@@ -366,6 +366,7 @@ static void handle_queued_send_echo( IRP *irp )
{
struct
nsiproxy_icmp_echo
*
in
=
(
struct
nsiproxy_icmp_echo
*
)
irp
->
AssociatedIrp
.
SystemBuffer
;
struct
icmp_send_echo_params
params
;
icmp_handle
handle
;
NTSTATUS
status
;
TRACE
(
"
\n
"
);
...
...
@@ -376,6 +377,7 @@ static void handle_queued_send_echo( IRP *irp )
params
.
ttl
=
in
->
ttl
;
params
.
tos
=
in
->
tos
;
params
.
dst
=
&
in
->
dst
;
params
.
handle
=
&
handle
;
status
=
nsiproxy_call
(
icmp_send_echo
,
&
params
);
TRACE
(
"icmp_send_echo rets %08lx
\n
"
,
status
);
...
...
@@ -389,7 +391,7 @@ static void handle_queued_send_echo( IRP *irp )
}
else
{
irp_set_icmp_handle
(
irp
,
params
.
handle
);
irp_set_icmp_handle
(
irp
,
handle
);
RtlQueueWorkItem
(
listen_thread_proc
,
irp
,
WT_EXECUTELONGFUNCTION
);
}
}
...
...
dlls/nsiproxy.sys/icmp_echo.c
View file @
f5627617
...
...
@@ -659,9 +659,9 @@ NTSTATUS icmp_send_echo( void *args )
return
STATUS_SUCCESS
;
}
params
->
handle
=
handle_alloc
(
data
);
if
(
!
params
->
handle
)
icmp_data_free
(
data
);
return
params
->
handle
?
STATUS_PENDING
:
STATUS_NO_MEMORY
;
*
params
->
handle
=
handle_alloc
(
data
);
if
(
!
*
params
->
handle
)
icmp_data_free
(
data
);
return
*
params
->
handle
?
STATUS_PENDING
:
STATUS_NO_MEMORY
;
}
static
int
get_timeout
(
LARGE_INTEGER
start
,
UINT
timeout
)
...
...
dlls/nsiproxy.sys/nsiproxy_private.h
View file @
f5627617
...
...
@@ -45,7 +45,7 @@ struct icmp_send_echo_params
void
*
request
,
*
reply
;
UINT
request_size
,
reply_len
;
BYTE
bits
,
ttl
,
tos
;
icmp_handle
handle
;
icmp_handle
*
handle
;
};
/* output for IOCTL_NSIPROXY_WINE_ICMP_ECHO - cf. ICMP_ECHO_REPLY */
...
...
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