Module: wine Branch: master Commit: dfab8824c5617bc39ccff26ee4dd056082cb0d53 URL: http://source.winehq.org/git/wine.git/?a=commit;h=dfab8824c5617bc39ccff26ee4...
Author: Alexandre Julliard julliard@winehq.org Date: Fri Oct 1 13:37:44 2010 +0200
user32/tests: Make some variables static.
---
dlls/user32/tests/input.c | 6 +++--- dlls/user32/tests/listbox.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/dlls/user32/tests/input.c b/dlls/user32/tests/input.c index d82ef3c..e0d5b42 100644 --- a/dlls/user32/tests/input.c +++ b/dlls/user32/tests/input.c @@ -414,7 +414,7 @@ struct message { LPARAM lParam; /* expected value of lParam */ };
-struct sendinput_test_s { +static const struct sendinput_test_s { WORD wVk; DWORD dwFlags; BOOL _todo_wine; @@ -674,10 +674,10 @@ static struct message sent_messages[MAXKEYMESSAGES]; static UINT sent_messages_cnt;
/* Verify that only specified key state transitions occur */ -static void compare_and_check(int id, BYTE *ks1, BYTE *ks2, struct sendinput_test_s *test) +static void compare_and_check(int id, BYTE *ks1, BYTE *ks2, const struct sendinput_test_s *test) { int i, failcount = 0; - struct transition_s *t = test->expected_transitions; + const struct transition_s *t = test->expected_transitions; UINT actual_cnt = 0; const struct message *expected = test->expected_messages;
diff --git a/dlls/user32/tests/listbox.c b/dlls/user32/tests/listbox.c index 06c41d4..2559be5 100644 --- a/dlls/user32/tests/listbox.c +++ b/dlls/user32/tests/listbox.c @@ -996,8 +996,8 @@ static void test_listbox_LB_DIR(void) DeleteFileA( "wtest1.tmp.c" ); }
-HWND g_listBox; -HWND g_label; +static HWND g_listBox; +static HWND g_label;
#define ID_TEST_LABEL 1001 #define ID_TEST_LISTBOX 1002