Commit a10dfea0 authored by Frédéric Delanoy's avatar Frédéric Delanoy Committed by Alexandre Julliard

kernel32/tests: Use BOOL type where appropriate.

parent 4cc3705f
...@@ -56,7 +56,7 @@ static SIZE_T resize_9x(SIZE_T size) ...@@ -56,7 +56,7 @@ static SIZE_T resize_9x(SIZE_T size)
static void test_sized_HeapAlloc(int nbytes) static void test_sized_HeapAlloc(int nbytes)
{ {
int success; BOOL success;
char *buf = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, nbytes); char *buf = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, nbytes);
ok(buf != NULL, "allocate failed\n"); ok(buf != NULL, "allocate failed\n");
ok(buf[0] == 0, "buffer not zeroed\n"); ok(buf[0] == 0, "buffer not zeroed\n");
...@@ -66,7 +66,7 @@ static void test_sized_HeapAlloc(int nbytes) ...@@ -66,7 +66,7 @@ static void test_sized_HeapAlloc(int nbytes)
static void test_sized_HeapReAlloc(int nbytes1, int nbytes2) static void test_sized_HeapReAlloc(int nbytes1, int nbytes2)
{ {
int success; BOOL success;
char *buf = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, nbytes1); char *buf = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, nbytes1);
ok(buf != NULL, "allocate failed\n"); ok(buf != NULL, "allocate failed\n");
ok(buf[0] == 0, "buffer not zeroed\n"); ok(buf[0] == 0, "buffer not zeroed\n");
......
...@@ -452,7 +452,7 @@ static DWORD CALLBACK serverThreadMain1(LPVOID arg) ...@@ -452,7 +452,7 @@ static DWORD CALLBACK serverThreadMain1(LPVOID arg)
char buf[512]; char buf[512];
DWORD written; DWORD written;
DWORD readden; DWORD readden;
DWORD success; BOOL success;
/* Wait for client to connect */ /* Wait for client to connect */
trace("Server calling ConnectNamedPipe...\n"); trace("Server calling ConnectNamedPipe...\n");
...@@ -504,13 +504,15 @@ static DWORD CALLBACK serverThreadMain2(LPVOID arg) ...@@ -504,13 +504,15 @@ static DWORD CALLBACK serverThreadMain2(LPVOID arg)
char buf[512]; char buf[512];
DWORD written; DWORD written;
DWORD readden; DWORD readden;
DWORD success; DWORD ret;
BOOL success;
user_apc_ran = FALSE; user_apc_ran = FALSE;
if (i == 0 && pQueueUserAPC) { if (i == 0 && pQueueUserAPC) {
trace("Queueing an user APC\n"); /* verify the pipe is non alerable */ trace("Queueing an user APC\n"); /* verify the pipe is non alerable */
success = pQueueUserAPC(&user_apc, GetCurrentThread(), 0); ret = pQueueUserAPC(&user_apc, GetCurrentThread(), 0);
ok(success, "QueueUserAPC failed: %d\n", GetLastError()); ok(ret, "QueueUserAPC failed: %d\n", GetLastError());
} }
/* Wait for client to connect */ /* Wait for client to connect */
...@@ -587,7 +589,7 @@ static DWORD CALLBACK serverThreadMain3(LPVOID arg) ...@@ -587,7 +589,7 @@ static DWORD CALLBACK serverThreadMain3(LPVOID arg)
DWORD written; DWORD written;
DWORD readden; DWORD readden;
DWORD dummy; DWORD dummy;
DWORD success; BOOL success;
OVERLAPPED oOverlap; OVERLAPPED oOverlap;
int letWFSOEwait = (i & 2); int letWFSOEwait = (i & 2);
int letGORwait = (i & 1); int letGORwait = (i & 1);
...@@ -713,7 +715,7 @@ static DWORD CALLBACK serverThreadMain4(LPVOID arg) ...@@ -713,7 +715,7 @@ static DWORD CALLBACK serverThreadMain4(LPVOID arg)
DWORD written; DWORD written;
DWORD readden; DWORD readden;
DWORD dummy; DWORD dummy;
DWORD success; BOOL success;
OVERLAPPED oConnect; OVERLAPPED oConnect;
OVERLAPPED oRead; OVERLAPPED oRead;
OVERLAPPED oWrite; OVERLAPPED oWrite;
...@@ -837,7 +839,7 @@ static DWORD CALLBACK serverThreadMain5(LPVOID arg) ...@@ -837,7 +839,7 @@ static DWORD CALLBACK serverThreadMain5(LPVOID arg)
for (i = 0; i < NB_SERVER_LOOPS; i++) { for (i = 0; i < NB_SERVER_LOOPS; i++) {
char buf[512]; char buf[512];
DWORD readden; DWORD readden;
DWORD success; BOOL success;
OVERLAPPED oOverlap; OVERLAPPED oOverlap;
DWORD err; DWORD err;
......
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