From 344b11efeada95a120ef2e09349a399cf6ccd888 Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Fri, 19 Apr 2002 17:51:31 +0000 Subject: [PATCH] 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 --- server/mpm/winnt/mpm_winnt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/mpm/winnt/mpm_winnt.c b/server/mpm/winnt/mpm_winnt.c index 34ca240e545..877c7f158d1 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."); } -- 2.47.3