server: Fix page size calculation in write access check.
Signed-off-by: Torge Matthies <openglfreak@googlemail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
d1fbb6b999
commit
102a0b189b
|
@ -410,10 +410,10 @@ int read_process_memory( struct process *process, client_ptr_t ptr, data_size_t
|
|||
}
|
||||
|
||||
/* make sure we can write to the whole address range */
|
||||
/* len is the total size (in ints) */
|
||||
/* len is the total size (in longs) */
|
||||
static int check_process_write_access( struct thread *thread, long *addr, data_size_t len )
|
||||
{
|
||||
int page = get_page_size() / sizeof(int);
|
||||
int page = get_page_size() / sizeof(long);
|
||||
|
||||
for (;;)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue