comparison src/event/modules/ngx_iocp_module.c @ 5872:de7ec5eef6d2

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.
author Kouhei Sutou <kou@cozmixng.org>
date Sat, 11 Oct 2014 20:56:35 +0900
parents 3d2d3e1cf427
children 466bd63b63d1
comparison
equal deleted inserted replaced
5871:21043ce2a005 5872:de7ec5eef6d2
245 timer = INFINITE; 245 timer = INFINITE;
246 } 246 }
247 247
248 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, cycle->log, 0, "iocp timer: %M", timer); 248 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, cycle->log, 0, "iocp timer: %M", timer);
249 249
250 rc = GetQueuedCompletionStatus(iocp, &bytes, (LPDWORD) &key, 250 rc = GetQueuedCompletionStatus(iocp, &bytes, (PULONG_PTR) &key,
251 (LPOVERLAPPED *) &ovlp, (u_long) timer); 251 (LPOVERLAPPED *) &ovlp, (u_long) timer);
252 252
253 if (rc == 0) { 253 if (rc == 0) {
254 err = ngx_errno; 254 err = ngx_errno;
255 } else { 255 } else {