Commit feb71a69 authored by Stas Sergeev's avatar Stas Sergeev Committed by Alexandre Julliard

mmap() fails with ENODEV on NTFS under Linux.

parent 4c5af80c
......@@ -1610,10 +1610,10 @@ LPVOID FILE_dommap( int unix_handle, LPVOID start,
/* mmap() failed; if this is because the file offset is not */
/* page-aligned (EINVAL), or because the underlying filesystem */
/* does not support mmap() (ENOEXEC), we do it by hand. */
/* does not support mmap() (ENOEXEC,ENODEV), we do it by hand. */
if (unix_handle == -1) return ret;
if ((errno != ENOEXEC) && (errno != EINVAL)) return ret;
if ((errno != ENOEXEC) && (errno != EINVAL) && (errno != ENODEV)) return ret;
if (prot & PROT_WRITE)
{
/* We cannot fake shared write mappings */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment