Committing a page of a shared mapping in one process lets it appear

committed in other processes, too. To fake this, we commit them as
soon as they are mapped.
This commit is contained in:
Peter Ganten 2000-08-01 23:39:07 +00:00 committed by Alexandre Julliard
parent 9f7907eb69
commit 99443aa5f1
1 changed files with 8 additions and 0 deletions

View File

@ -1239,6 +1239,14 @@ LPVOID WINAPI MapViewOfFileEx(
goto error;
}
/* FIXME: If a mapping is created with SEC_RESERVE and a process,
* which has a view of this mapping commits some pages, they will
* appear commited in all other processes, which have the same
* view created. Since we don`t support this yet, we create the
* whole mapping commited.
*/
prot |= VPROT_COMMITTED;
/* Map the file */
TRACE("handle=%x size=%x offset=%lx\n", handle, size, offset_low );