On 01.08.2017 19:08, Jacek Caban wrote:
- overlapped->Internal = ret;
- if (overlapped->hEvent) SetEvent(overlapped->hEvent);
Not sure how it is implemented on Windows, but caching overlapped->hEvent would ensure that it also works when the overlapped struct is immediately reused after ->Internal changed.