This commit is contained in:
Eugen Wissner 2018-03-08 17:59:29 +01:00
parent e77a499fa2
commit 8fa033a49f
1 changed files with 2 additions and 1 deletions

View File

@ -296,7 +296,8 @@ final class IOCPLoop : Loop
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);
scope (failure)
{