Module: wine Branch: master Commit: ed94ca1e4f9c65c977275b816e6c6ccd917093d3 URL: http://source.winehq.org/git/wine.git/?a=commit;h=ed94ca1e4f9c65c977275b816e...
Author: Francois Gouget fgouget@free.fr Date: Sun May 27 13:30:42 2007 +0200
kernel32/tests: src[i] is a char so there is no point trying to stuff 0xcafedead into it.
---
dlls/kernel32/tests/virtual.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/kernel32/tests/virtual.c b/dlls/kernel32/tests/virtual.c index bcff9c4..a033096 100644 --- a/dlls/kernel32/tests/virtual.c +++ b/dlls/kernel32/tests/virtual.c @@ -84,7 +84,7 @@ static void test_VirtualAllocEx(void) src = (char *) HeapAlloc( GetProcessHeap(), 0, alloc_size ); dst = (char *) HeapAlloc( GetProcessHeap(), 0, alloc_size ); for (i = 0; i < alloc_size; i++) - src[i] = 0xcafedead + i; + src[i] = i & 0xff;
ok(addr1 != NULL, "VirtualAllocEx error %u\n", GetLastError()); b = WriteProcessMemory(hProcess, addr1, src, alloc_size, &bytes_written);