kernel32/tests: Avoid arithmetic on pointer to stack variable.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
7b485dbf68
commit
25ed1d9e82
|
@ -2865,8 +2865,8 @@ static void test_atl_thunk_emulation( ULONG dep_flags )
|
|||
success = VirtualProtect( base, size, PAGE_READWRITE, &old_prot );
|
||||
ok( success, "VirtualProtect failed %u\n", GetLastError() );
|
||||
|
||||
ret = (DWORD_PTR)atl5_test_func;
|
||||
ret = call_proc_excpt( (void *)base, &ret - 1 );
|
||||
results[1] = atl5_test_func;
|
||||
ret = call_proc_excpt( (void *)base, results );
|
||||
/* FIXME: We don't check the content of the registers EAX/ECX yet */
|
||||
ok( ret == 44, "call returned wrong result, expected 44, got %d\n", ret );
|
||||
ok( num_guard_page_calls == 0, "expected no STATUS_GUARD_PAGE_VIOLATION exception, got %d exceptions\n", num_guard_page_calls );
|
||||
|
|
Loading…
Reference in New Issue