Skip to content
Snippets Groups Projects
Commit f1444c69 authored by Martin Karlgren's avatar Martin Karlgren
Browse files

Win32: Map ERROR_DIRECTORY to ENOTDIR. Fixes [Bug 7271].

parent 82a99c51
No related branches found
No related tags found
No related merge requests found
...@@ -65,6 +65,9 @@ PMOD_EXPORT void set_errno_from_win32_error (unsigned long err) ...@@ -65,6 +65,9 @@ PMOD_EXPORT void set_errno_from_win32_error (unsigned long err)
case ERROR_INVALID_HANDLE: /* 124 */ case ERROR_INVALID_HANDLE: /* 124 */
case ERROR_NEGATIVE_SEEK: /* 131 */ case ERROR_NEGATIVE_SEEK: /* 131 */
return; return;
case ERROR_DIRECTORY: /* 267 */
errno = ENOTDIR; /* [Bug 7271] */
return;
} }
/* FIXME: This lets most winsock codes through as-is, e.g. /* FIXME: This lets most winsock codes through as-is, e.g.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment