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:
Torge Matthies 2021-02-24 20:53:33 +01:00 committed by Alexandre Julliard
parent d1fbb6b999
commit 102a0b189b
1 changed files with 2 additions and 2 deletions

View File

@ -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 (;;)
{