Sync to trunk head (r42241)
[reactos.git] / reactos / dll / win32 / ws2_32 / misc / stubs.c
index 1c79d18..c8c3b08 100644 (file)
@@ -31,7 +31,7 @@ getpeername(IN     SOCKET s,
         return SOCKET_ERROR;
     }
 
-    if (!ReferenceProviderByHandle((HANDLE)s, &Provider))
+    if (!ReferenceProviderByHandle((HANDLE)(ULONG_PTR)(s), &Provider))
     {
         WSASetLastError(WSAENOTSOCK);
         return SOCKET_ERROR;