From 1298f2233f48fe0256c3d35ab1c2931942d2112d Mon Sep 17 00:00:00 2001
From: Eric Pouech <eric.pouech@orange.fr>
Date: Mon, 19 Apr 2010 22:33:53 +0200
Subject: [PATCH] server: Fix write_process_memory on Wow64.

---
 server/ptrace.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/ptrace.c b/server/ptrace.c
index b8a31cfd659..111804809d5 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);
-- 
GitLab