]> granicus.if.org Git - apache/commitdiff
SOCKETs are HANDLEs, but they type mismatch. This fix has now been
authorWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 19 Apr 2002 17:51:31 +0000 (17:51 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 19 Apr 2002 17:51:31 +0000 (17:51 +0000)
  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

index 34ca240e5452ab6c9942a389432c64eb3055921d..877c7f158d1e41aac6bb748c2dd1ed9316a420e4 100644 (file)
@@ -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.");
             }