Commit 102a0b18 authored by Torge Matthies's avatar Torge Matthies Committed by Alexandre Julliard

server: Fix page size calculation in write access check.

parent d1fbb6b9
......@@ -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 (;;)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment