Fix set up of OVERLAPPED struct for files.

This commit is contained in:
Sönke Ludwig 2018-03-11 20:12:32 +01:00
parent 3090bc2c7c
commit 26907c7489

View file

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