diff --git a/source/eventcore/drivers/winapi/files.d b/source/eventcore/drivers/winapi/files.d index 871e7ec..af63e27 100644 --- a/source/eventcore/drivers/winapi/files.d +++ b/source/eventcore/drivers/winapi/files.d @@ -161,7 +161,7 @@ final class WinAPIEventDriverFiles : EventDriverFiles { InternalHigh = 0; Offset = cast(uint)(slot.offset & 0xFFFFFFFF); OffsetHigh = cast(uint)(slot.offset >> 32); - hEvent = () @trusted { return cast(HANDLE)slot; } (); + hEvent = h; } auto nbytes = min(slot.buffer.length, DWORD.max);