From dbdacb0938d4c1cda1229436f1787e939bb15c85 Mon Sep 17 00:00:00 2001 From: Alexandros Naskos Date: Sat, 30 May 2020 16:46:32 +0300 Subject: [PATCH] Fix WSARecvFrom signature The lpFromLen should be a pointer. --- lib/std/os/windows/ws2_32.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/os/windows/ws2_32.zig b/lib/std/os/windows/ws2_32.zig index d467a60d17..abc858b24a 100644 --- a/lib/std/os/windows/ws2_32.zig +++ b/lib/std/os/windows/ws2_32.zig @@ -728,7 +728,7 @@ pub extern "ws2_32" fn WSARecvFrom( lpNumberOfBytesRecvd: ?*DWORD, lpFlags: *DWORD, lpFrom: ?*sockaddr, - lpFromlen: socklen_t, + lpFromlen: ?*socklen_t, lpOverlapped: ?*WSAOVERLAPPED, lpCompletionRoutine: ?WSAOVERLAPPED_COMPLETION_ROUTINE, ) callconv(.Stdcall) c_int;