CompletionKey parameter for functions CreateIoCompletionPort,
GetQueuedCompletionStatus must be 64bit size on amd64 and 32bit size on x86.
This commit is contained in:
parent
d7e8b89eb8
commit
2a2a3d6c39
2 changed files with 6 additions and 4 deletions
|
|
@ -368,7 +368,7 @@ proc processTimers(p: PDispatcherBase) =
|
|||
when defined(windows) or defined(nimdoc):
|
||||
import winlean, sets, hashes
|
||||
type
|
||||
CompletionKey = Dword
|
||||
CompletionKey = ULONG_PTR
|
||||
|
||||
CompletionData* = object
|
||||
fd*: AsyncFD # TODO: Rename this.
|
||||
|
|
@ -431,7 +431,7 @@ when defined(windows) or defined(nimdoc):
|
|||
if timeout == -1: winlean.INFINITE
|
||||
else: timeout.int32
|
||||
var lpNumberOfBytesTransferred: Dword
|
||||
var lpCompletionKey: ULONG
|
||||
var lpCompletionKey: ULONG_PTR
|
||||
var customOverlapped: PCustomOverlapped
|
||||
let res = getQueuedCompletionStatus(p.ioPort,
|
||||
addr lpNumberOfBytesTransferred, addr lpCompletionKey,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue