server: Fix write_process_memory on Wow64.

This commit is contained in:
Eric Pouech 2010-04-19 22:33:53 +02:00 committed by Alexandre Julliard
parent e5555b0fb5
commit 1298f2233f
1 changed files with 1 additions and 1 deletions

View File

@ -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 ) static long write_thread_long( struct thread *thread, long *addr, long data, unsigned long mask )
{ {
long res; long res;
if (mask != ~0u) if (mask != ~0ul)
{ {
if (read_thread_long( thread, addr, &res ) == -1) return -1; if (read_thread_long( thread, addr, &res ) == -1) return -1;
data = (data & mask) | (res & ~mask); data = (data & mask) | (res & ~mask);