Andrey Turkin : server: Open mem file for write when writing memory.

Alexandre Julliard julliard at winehq.org
Thu Oct 22 10:39:58 CDT 2009


Module: wine
Branch: master
Commit: 5116dca8e1e3430bc66d672a9f1afcebf5859526
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=5116dca8e1e3430bc66d672a9f1afcebf5859526

Author: Andrey Turkin <andrey.turkin at gmail.com>
Date:   Thu Oct 22 17:09:51 2009 +0400

server: Open mem file for write when writing memory.

---

 server/procfs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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 @@ 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 );




More information about the wine-cvs mailing list