Klaus Demo nginx / 3df66a6
Win32: fixed wrong type cast. GetQueuedCompletionStatus() document on MSDN says the following signature: http://msdn.microsoft.com/en-us/library/windows/desktop/aa364986.aspx BOOL WINAPI GetQueuedCompletionStatus( _In_ HANDLE CompletionPort, _Out_ LPDWORD lpNumberOfBytes, _Out_ PULONG_PTR lpCompletionKey, _Out_ LPOVERLAPPED *lpOverlapped, _In_ DWORD dwMilliseconds ); In the latest specification, the type of the third argument (lpCompletionKey) is PULONG_PTR not LPDWORD. Kouhei Sutou 6 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
247247 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, cycle->log, 0, "iocp timer: %M", timer);
249 rc = GetQueuedCompletionStatus(iocp, &bytes, (LPDWORD) &key,
249 rc = GetQueuedCompletionStatus(iocp, &bytes, (PULONG_PTR) &key,
250250 (LPOVERLAPPED *) &ovlp, (u_long) timer);
252252 if (rc == 0) {