Zebediah Figura : ws2_32: Remove a leftover cast.

Alexandre Julliard julliard at winehq.org
Tue May 18 15:42:37 CDT 2021


Module: wine
Branch: master
Commit: 8fbf62ec47638ade6b4374541176fe90a6fb2c8f
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=8fbf62ec47638ade6b4374541176fe90a6fb2c8f

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Mon May 17 21:29:57 2021 -0500

ws2_32: Remove a leftover cast.

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ws2_32/socket.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
index 94f3f139c9c..0c1ba594825 100644
--- a/dlls/ws2_32/socket.c
+++ b/dlls/ws2_32/socket.c
@@ -2352,8 +2352,8 @@ SOCKET WINAPI WS_accept( SOCKET s, struct WS_sockaddr *addr, int *len )
     TRACE("%#lx\n", s);
 
     if (!(sync_event = get_sync_event())) return INVALID_SOCKET;
-    status = NtDeviceIoControlFile( SOCKET2HANDLE(s), (HANDLE)((ULONG_PTR)sync_event | 0), NULL, NULL, &io,
-                                    IOCTL_AFD_WINE_ACCEPT, NULL, 0, &accept_handle, sizeof(accept_handle) );
+    status = NtDeviceIoControlFile( (HANDLE)s, sync_event, NULL, NULL, &io, IOCTL_AFD_WINE_ACCEPT,
+                                    NULL, 0, &accept_handle, sizeof(accept_handle) );
     if (status == STATUS_PENDING)
     {
         if (WaitForSingleObject( sync_event, INFINITE ) == WAIT_FAILED)




More information about the wine-cvs mailing list