std: fix WSAIoctl definition
zig automatically passes functions as pointers
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user