Module: wine Branch: refs/heads/master Commit: 959a84208aef65d8c5ded10c0d0d92287e30d50c URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=959a84208aef65d8c5ded10c...
Author: Vitaly Lipatov lav@etersoft.ru Date: Thu Apr 27 12:23:18 2006 +0400
user: tests: Change INPUT to TEST_INPUT, fix union usage.
---
dlls/user/tests/input.c | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/dlls/user/tests/input.c b/dlls/user/tests/input.c index 7f41525..a6e0389 100644 --- a/dlls/user/tests/input.c +++ b/dlls/user/tests/input.c @@ -475,7 +475,7 @@ static LRESULT CALLBACK WndProc2(HWND hW
static void test_Input_blackbox(void) { - INPUT i; + TEST_INPUT i; int ii; BYTE ks1[256], ks2[256]; LONG_PTR prevWndProc; @@ -495,16 +495,16 @@ static void test_Input_blackbox(void) "error: %d\n", (int) GetLastError());
i.type = INPUT_KEYBOARD; - i.ki.wScan = 0; - i.ki.time = 0; - i.ki.dwExtraInfo = 0; + i.u.ki.wScan = 0; + i.u.ki.time = 0; + i.u.ki.dwExtraInfo = 0;
for (ii = 0; ii < sizeof(sendinput_test)/sizeof(struct sendinput_test_s)-1; ii++) { GetKeyboardState(ks1); - i.ki.dwFlags = sendinput_test[ii].dwFlags; - i.ki.wVk = sendinput_test[ii].wVk; - SendInput(1, &i, sizeof(INPUT)); + i.u.ki.dwFlags = sendinput_test[ii].dwFlags; + i.u.ki.wVk = sendinput_test[ii].wVk; + SendInput(1, (INPUT*)&i, sizeof(TEST_INPUT)); empty_message_queue(); GetKeyboardState(ks2); compare_and_check(ii, ks1, ks2,