user32/tests: Use SetWindowLongPtr instead of SetWindowLong.

This commit is contained in:
Erik de Castro Lopo 2008-04-25 17:13:39 +10:00 committed by Alexandre Julliard
parent 4daec079c1
commit 56797f9c65
1 changed files with 1 additions and 1 deletions

View File

@ -1930,7 +1930,7 @@ static void test_child_edit_wmkeydown(void)
hwEdit = create_child_editcontrol(0, 0);
hwParent = GetParent(hwEdit);
SetWindowLong(hwParent, GWL_WNDPROC, (LONG)child_edit_wmkeydown_proc);
SetWindowLongPtr(hwParent, GWLP_WNDPROC, (LONG_PTR)child_edit_wmkeydown_proc);
r = SendMessage(hwEdit, WM_KEYDOWN, VK_RETURN, 0x1c0001);
ok(1 == r, "expected 1, got %d\n", r);
ok(0 == child_edit_wmkeydown_num_messages, "expected 0, got %d\n", child_edit_wmkeydown_num_messages);