kernel32/tests: Make some variables static.

This commit is contained in:
Alexandre Julliard 2010-10-01 13:36:35 +02:00
parent c1b1b6f184
commit 7064e8838c
4 changed files with 7 additions and 9 deletions

View File

@ -369,9 +369,8 @@ static void test_ffcnMultipleThreads(void)
ok( r == TRUE, "failed to remove dir\n");
}
typedef BOOL (WINAPI *fnReadDirectoryChangesW)(HANDLE,LPVOID,DWORD,BOOL,DWORD,
static BOOL (WINAPI *pReadDirectoryChangesW)(HANDLE,LPVOID,DWORD,BOOL,DWORD,
LPDWORD,LPOVERLAPPED,LPOVERLAPPED_COMPLETION_ROUTINE);
fnReadDirectoryChangesW pReadDirectoryChangesW;
static void test_readdirectorychanges(void)
{
@ -874,8 +873,7 @@ static void test_ffcn_directory_overlap(void)
START_TEST(change)
{
HMODULE hkernel32 = GetModuleHandle("kernel32");
pReadDirectoryChangesW = (fnReadDirectoryChangesW)
GetProcAddress(hkernel32, "ReadDirectoryChangesW");
pReadDirectoryChangesW = (void *)GetProcAddress(hkernel32, "ReadDirectoryChangesW");
test_ffcnMultipleThreads();
/* The above function runs a test that must occur before FindCloseChangeNotification is run in the

View File

@ -392,7 +392,7 @@ static DWORD CALLBACK alarmThreadMain(LPVOID arg)
return 1;
}
HANDLE hnp = INVALID_HANDLE_VALUE;
static HANDLE hnp = INVALID_HANDLE_VALUE;
/** Trivial byte echo server - disconnects after each session */
static DWORD CALLBACK serverThreadMain1(LPVOID arg)

View File

@ -26,11 +26,11 @@
static const char filename[] = "test_.exe";
static DWORD GLE;
enum {
enum constants {
page_size = 0x1000,
rva_rsrc_start = page_size * 3,
max_sections = 3
} constants;
};
/* rodata @ [0x1000-0x3000) */
static const IMAGE_SECTION_HEADER sh_rodata_1 =

View File

@ -146,7 +146,7 @@ static void cleanup_thread_sync_helpers(void)
CloseHandle(stop_event);
}
DWORD tlsIndex;
static DWORD tlsIndex;
typedef struct {
int threadnum;
@ -157,7 +157,7 @@ typedef struct {
/* WinME supports OpenThread but doesn't know about access restrictions so
we require them to be either completely ignored or always obeyed.
*/
INT obeying_ars = 0; /* -1 == no, 0 == dunno yet, 1 == yes */
static INT obeying_ars = 0; /* -1 == no, 0 == dunno yet, 1 == yes */
#define obey_ar(x) \
(obeying_ars == 0 \
? ((x) \