Fix set up of OVERLAPPED struct for files.
This commit is contained in:
parent
3090bc2c7c
commit
26907c7489
|
@ -161,7 +161,7 @@ final class WinAPIEventDriverFiles : EventDriverFiles {
|
||||||
InternalHigh = 0;
|
InternalHigh = 0;
|
||||||
Offset = cast(uint)(slot.offset & 0xFFFFFFFF);
|
Offset = cast(uint)(slot.offset & 0xFFFFFFFF);
|
||||||
OffsetHigh = cast(uint)(slot.offset >> 32);
|
OffsetHigh = cast(uint)(slot.offset >> 32);
|
||||||
hEvent = () @trusted { return cast(HANDLE)slot; } ();
|
hEvent = h;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto nbytes = min(slot.buffer.length, DWORD.max);
|
auto nbytes = min(slot.buffer.length, DWORD.max);
|
||||||
|
|
Loading…
Reference in a new issue