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:
Jacek Caban 2020-04-20 14:13:40 +02:00 committed by Alexandre Julliard
parent 7b485dbf68
commit 25ed1d9e82
1 changed files with 2 additions and 2 deletions

View File

@ -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 );