std: fix WSAIoctl definition

zig automatically passes functions as pointers
This commit is contained in:
daurnimator
2019-11-22 14:49:24 +11:00
parent d99f0a2b8f
commit 254c79125b
2 changed files with 2 additions and 2 deletions

View File

@@ -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(

View File

@@ -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;