Commit 959a8420 authored by Vitaly Lipatov's avatar Vitaly Lipatov Committed by Alexandre Julliard

user: tests: Change INPUT to TEST_INPUT, fix union usage.

parent c4eff1eb
...@@ -475,7 +475,7 @@ static LRESULT CALLBACK WndProc2(HWND hWnd, UINT Msg, WPARAM wParam, ...@@ -475,7 +475,7 @@ static LRESULT CALLBACK WndProc2(HWND hWnd, UINT Msg, WPARAM wParam,
static void test_Input_blackbox(void) static void test_Input_blackbox(void)
{ {
INPUT i; TEST_INPUT i;
int ii; int ii;
BYTE ks1[256], ks2[256]; BYTE ks1[256], ks2[256];
LONG_PTR prevWndProc; LONG_PTR prevWndProc;
...@@ -495,16 +495,16 @@ static void test_Input_blackbox(void) ...@@ -495,16 +495,16 @@ static void test_Input_blackbox(void)
"error: %d\n", (int) GetLastError()); "error: %d\n", (int) GetLastError());
i.type = INPUT_KEYBOARD; i.type = INPUT_KEYBOARD;
i.ki.wScan = 0; i.u.ki.wScan = 0;
i.ki.time = 0; i.u.ki.time = 0;
i.ki.dwExtraInfo = 0; i.u.ki.dwExtraInfo = 0;
for (ii = 0; ii < sizeof(sendinput_test)/sizeof(struct sendinput_test_s)-1; for (ii = 0; ii < sizeof(sendinput_test)/sizeof(struct sendinput_test_s)-1;
ii++) { ii++) {
GetKeyboardState(ks1); GetKeyboardState(ks1);
i.ki.dwFlags = sendinput_test[ii].dwFlags; i.u.ki.dwFlags = sendinput_test[ii].dwFlags;
i.ki.wVk = sendinput_test[ii].wVk; i.u.ki.wVk = sendinput_test[ii].wVk;
SendInput(1, &i, sizeof(INPUT)); SendInput(1, (INPUT*)&i, sizeof(TEST_INPUT));
empty_message_queue(); empty_message_queue();
GetKeyboardState(ks2); GetKeyboardState(ks2);
compare_and_check(ii, ks1, ks2, compare_and_check(ii, ks1, ks2,
......
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