Commit ed94ca1e authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

kernel32/tests: src[i] is a char so there is no point trying to stuff 0xcafedead into it.

parent fd578240
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment