Skip to content
Snippets Groups Projects
Commit 102a0b18 authored by Torge Matthies's avatar Torge Matthies Committed by Alexandre Julliard
Browse files

server: Fix page size calculation in write access check.

parent d1fbb6b9
No related branches found
No related tags found
No related merge requests found
......@@ -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 (;;)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment