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:
parent
9f7907eb69
commit
99443aa5f1
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue