Skip to content
Snippets Groups Projects
Commit 52f0703f authored by Marc-Aurel Zent's avatar Marc-Aurel Zent Committed by Alexandre Julliard
Browse files

server: Do not suspend mach task in read_process_memory.

parent 13c47c91
No related branches found
No related tags found
No related merge requests found
......@@ -411,12 +411,6 @@ int read_process_memory( struct process *process, client_ptr_t ptr, data_size_t
return 0;
}
if ((ret = task_suspend( process_port )) != KERN_SUCCESS)
{
mach_set_error( ret );
return 0;
}
offset = ptr % page_size;
aligned_address = (mach_vm_address_t)(ptr - offset);
aligned_size = (size + offset + page_size - 1) / page_size * page_size;
......@@ -428,7 +422,6 @@ int read_process_memory( struct process *process, client_ptr_t ptr, data_size_t
memcpy( dest, (char *)data + offset, size );
mach_vm_deallocate( mach_task_self(), data, bytes_read );
}
task_resume( process_port );
return (ret == KERN_SUCCESS);
}
......
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