* network_io/win32/sockets.c: Remove ANSI codepath.
@@ -123,14 +123,11 @@ APR_DECLARE(apr_status_t) apr_socket_create(apr_socket_t **new, int family,
return apr_get_netos_error();
}
-#ifdef WIN32
/* Socket handles are never truly inheritable, there are too many
* bugs associated. WSADuplicateSocket will copy them, but for our
* purposes, always transform the socket() created as a non-inherited
* handle
*/
-#if APR_HAS_UNICODE_FS && !defined(_WIN32_WCE)
- IF_WIN_OS_IS_UNICODE {
/* A different approach. Many users report errors such as
* (32538)An operation was attempted on something that is not
* a socket. : Parent: WSADuplicateSocket failed...
@@ -142,25 +139,6 @@ APR_DECLARE(apr_status_t) apr_socket_create(apr_socket_t **new, int family,
*/
SetHandleInformation((HANDLE) (*new)->socketdes,
HANDLE_FLAG_INHERIT, 0);
- }
-#if APR_HAS_ANSI_FS
- /* only if APR_HAS_ANSI_FS && APR_HAS_UNICODE_FS */
- ELSE_WIN_OS_IS_ANSI
-#endif
-#endif
-#if APR_HAS_ANSI_FS || defined(_WIN32_WCE)
- {
- HANDLE hProcess = GetCurrentProcess();
- HANDLE dup;
- if (DuplicateHandle(hProcess, (HANDLE) (*new)->socketdes, hProcess,
- &dup, 0, FALSE, DUPLICATE_SAME_ACCESS)) {
- closesocket((*new)->socketdes);
- (*new)->socketdes = (SOCKET) dup;
- }
- }
-#endif
-
-#endif /* def WIN32 */
set_socket_vars(*new, family, type, protocol);
