This commit is contained in:
Eugen Wissner 2018-03-08 17:59:29 +01:00
parent e77a499fa2
commit 8fa033a49f

View File

@ -296,7 +296,8 @@ final class IOCPLoop : Loop
return; // Timeout return; // Timeout
} }
auto overlapped = (cast(SocketState) ((cast(void*) overlap) - 8)); enum size_t offset = size_t.sizeof * 2;
auto overlapped = cast(SocketState) ((cast(void*) overlap) - offset);
assert(overlapped !is null); assert(overlapped !is null);
scope (failure) scope (failure)
{ {