From: William A. Rowe Jr Date: Fri, 19 Apr 2002 17:51:31 +0000 (+0000) Subject: SOCKETs are HANDLEs, but they type mismatch. This fix has now been X-Git-Tag: 2.0.36~146 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eea953f32af90e0a55c07568983d7cc574e76f06;p=apache SOCKETs are HANDLEs, but they type mismatch. This fix has now been verified by the vast majority of folks complaining about the "Not a handle" failures in WSADuplicateHandle, later in the code flow. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94712 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/mpm/winnt/mpm_winnt.c b/server/mpm/winnt/mpm_winnt.c index 34ca240e54..877c7f158d 100644 --- a/server/mpm/winnt/mpm_winnt.c +++ b/server/mpm/winnt/mpm_winnt.c @@ -549,7 +549,7 @@ static int set_listeners_noninheritable(apr_pool_t *p) * problem by not altering the handle identifier. But this won't * work on 9x - it's unsupported. */ - if (!SetHandleInformation(nsd, HANDLE_FLAG_INHERIT, 0)) { + if (!SetHandleInformation((HANDLE)nsd, HANDLE_FLAG_INHERIT, 0)) { ap_log_error(APLOG_MARK, APLOG_ERR, apr_get_os_error(), ap_server_conf, "set_listeners_noninheritable: SetHandleInformation failed."); }