[PATCH 6/6] [Server]: fix write_process_memory on Wow64

Eric Pouech eric.pouech at orange.fr
Mon Apr 19 15:33:53 CDT 2010




A+
---

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


diff --git a/server/ptrace.c b/server/ptrace.c
index b8a31cf..1118048 100644
--- a/server/ptrace.c
+++ b/server/ptrace.c
@@ -330,7 +330,7 @@ static long read_thread_long( struct thread *thread, long *addr, long *data )
 static long write_thread_long( struct thread *thread, long *addr, long data, unsigned long mask )
 {
     long res;
-    if (mask != ~0u)
+    if (mask != ~0ul)
     {
         if (read_thread_long( thread, addr, &res ) == -1) return -1;
         data = (data & mask) | (res & ~mask);






More information about the wine-patches mailing list