From 26907c74897624a4550d150f3b9b7f9abadc13ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Sun, 11 Mar 2018 20:12:32 +0100 Subject: [PATCH] Fix set up of OVERLAPPED struct for files. --- source/eventcore/drivers/winapi/files.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);