Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
a39ac0a7
Commit
a39ac0a7
authored
Jan 03, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Print an error for unsupported shared writable mappings.
parent
17651d0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
virtual.c
dlls/ntdll/virtual.c
+6
-1
No files found.
dlls/ntdll/virtual.c
View file @
a39ac0a7
...
@@ -824,7 +824,12 @@ static NTSTATUS map_file_into_view( struct file_view *view, int fd, size_t start
...
@@ -824,7 +824,12 @@ static NTSTATUS map_file_into_view( struct file_view *view, int fd, size_t start
/* page-aligned (EINVAL), or because the underlying filesystem */
/* page-aligned (EINVAL), or because the underlying filesystem */
/* does not support mmap() (ENOEXEC,ENODEV), we do it by hand. */
/* does not support mmap() (ENOEXEC,ENODEV), we do it by hand. */
if
((
errno
!=
ENOEXEC
)
&&
(
errno
!=
EINVAL
)
&&
(
errno
!=
ENODEV
))
return
FILE_GetNtStatus
();
if
((
errno
!=
ENOEXEC
)
&&
(
errno
!=
EINVAL
)
&&
(
errno
!=
ENODEV
))
return
FILE_GetNtStatus
();
if
(
shared_write
)
return
FILE_GetNtStatus
();
/* we cannot fake shared write mappings */
if
(
shared_write
)
/* we cannot fake shared write mappings */
{
if
(
errno
==
EINVAL
)
return
STATUS_INVALID_PARAMETER
;
ERR
(
"shared writable mmap not supported, broken filesystem?
\n
"
);
return
STATUS_NOT_SUPPORTED
;
}
}
}
/* Reserve the memory with an anonymous mmap */
/* Reserve the memory with an anonymous mmap */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment