conn: winrio: pass key parameter into struct

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld 2021-04-02 10:36:41 -06:00
parent 6228659a91
commit 8ed83e0427

View File

@ -161,6 +161,7 @@ func CreateIOCPCompletionQueue(queueSize uint32, iocp windows.Handle, key uintpt
notificationCompletion := &iocpNotificationCompletion{ notificationCompletion := &iocpNotificationCompletion{
completionType: iocpCompletion, completionType: iocpCompletion,
iocp: iocp, iocp: iocp,
key: key,
overlapped: overlapped, overlapped: overlapped,
} }
ret, _, err := syscall.Syscall(extensionFunctionTable.rioCreateCompletionQueue, 2, uintptr(queueSize), uintptr(unsafe.Pointer(notificationCompletion)), 0) ret, _, err := syscall.Syscall(extensionFunctionTable.rioCreateCompletionQueue, 2, uintptr(queueSize), uintptr(unsafe.Pointer(notificationCompletion)), 0)