Commit 5116dca8 authored by Andrey Turkin's avatar Andrey Turkin Committed by Alexandre Julliard

server: Open mem file for write when writing memory.

parent 44a82859
......@@ -161,7 +161,7 @@ int write_process_memory( struct process *process, client_ptr_t ptr, size_t size
return 0;
}
if ((fd = open_proc_as( process, O_RDONLY )) == -1) return 0;
if ((fd = open_proc_as( process, O_WRONLY )) == -1) return 0;
ret = pwrite( fd, src, size, (off_t)ptr );
close( fd );
......
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