Commit 254c79125b

daurnimator <quae@daurnimator.com>
2019-11-22 04:49:24
std: fix WSAIoctl definition
zig automatically passes functions as pointers
1 parent d99f0a2
Changed files (2)
lib
std
lib/std/os/windows/ws2_32.zig
@@ -250,5 +250,5 @@ pub extern "ws2_32" stdcallcc fn WSAIoctl(
     cbOutBuffer: DWORD,
     lpcbBytesReturned: LPDWORD,
     lpOverlapped: ?*WSAOVERLAPPED,
-    lpCompletionRoutine: ?*WSAOVERLAPPED_COMPLETION_ROUTINE,
+    lpCompletionRoutine: ?WSAOVERLAPPED_COMPLETION_ROUTINE,
 ) c_int;
lib/std/os/windows.zig
@@ -708,7 +708,7 @@ pub fn WSAIoctl(
     inBuffer: ?[]const u8,
     outBuffer: []u8,
     overlapped: ?*ws2_32.WSAOVERLAPPED,
-    completionRoutine: ?*ws2_32.WSAOVERLAPPED_COMPLETION_ROUTINE,
+    completionRoutine: ?ws2_32.WSAOVERLAPPED_COMPLETION_ROUTINE,
 ) !DWORD {
     var bytes: DWORD = undefined;
     switch (ws2_32.WSAIoctl(