commit | 5116dca8e1e3430bc66d672a9f1afcebf5859526 | [log] [tgz] |
---|---|---|
author | Andrey Turkin <andrey.turkin@gmail.com> | Thu Oct 22 17:09:51 2009 +0400 |
committer | Alexandre Julliard <julliard@winehq.org> | Thu Oct 22 16:23:01 2009 +0200 |
tree | 6155611d80e804dae1d58cd7af140bb04f18cd92 | |
parent | 44a82859d35b2a8dfc0620e0ddad5588e6349ba2 [diff] [blame] |
server: Open mem file for write when writing memory.
diff --git a/server/procfs.c b/server/procfs.c index f7d9073..5caa02b 100644 --- a/server/procfs.c +++ b/server/procfs.c
@@ -161,7 +161,7 @@ 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 );