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

user32/tests: Use BOOL type where appropriate.

parent 77ee42fd
......@@ -60,7 +60,7 @@ static INT CALLBACK is_font_installed_proc(const LOGFONTA *elf, const TEXTMETRIC
return 0;
}
static int is_font_installed(const char *name)
static BOOL is_font_installed(const char *name)
{
HDC hdc = GetDC(NULL);
BOOL ret = !EnumFontFamiliesA(hdc, name, is_font_installed_proc, 0);
......
......@@ -304,7 +304,7 @@ static BOOL (WINAPI *pGetCursorInfo)(CURSORINFO *);
static BOOL (WINAPI *pGetIconInfoExA)(HICON,ICONINFOEXA *);
static BOOL (WINAPI *pGetIconInfoExW)(HICON,ICONINFOEXW *);
static const int is_win64 = (sizeof(void *) > sizeof(int));
static const BOOL is_win64 = (sizeof(void *) > sizeof(int));
static LRESULT CALLBACK callback_child(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
......
......@@ -40,7 +40,8 @@ static void test_dc_attributes(void)
{
HDC hdc, old_hdc;
HDC hdcs[20];
INT i, rop, def_rop, found_dc;
INT i, rop, def_rop;
BOOL found_dc;
/* test cache DC */
......@@ -59,7 +60,7 @@ static void test_dc_attributes(void)
ReleaseDC( hwnd_cache, hdc );
old_hdc = hdc;
found_dc = 0;
found_dc = FALSE;
for (i = 0; i < 20; i++)
{
hdc = hdcs[i] = GetDCEx( hwnd_cache, 0, DCX_USESTYLE | DCX_NORESETATTRS );
......@@ -68,7 +69,7 @@ static void test_dc_attributes(void)
ok( rop == def_rop, "wrong ROP2 %d after release %p/%p\n", rop, old_hdc, hdc );
if (hdc == old_hdc)
{
found_dc = 1;
found_dc = TRUE;
SetROP2( hdc, R2_WHITE );
}
}
......
......@@ -54,7 +54,7 @@ static HWND g_hwndInitialFocusT1, g_hwndInitialFocusT2, g_hwndInitialFocusGroupB
static LONG g_styleInitialFocusT1, g_styleInitialFocusT2;
static BOOL g_bInitialFocusInitDlgResult, g_bReceivedCommand;
static int g_terminated;
static BOOL g_terminated;
typedef struct {
INT_PTR id;
......
......@@ -2132,8 +2132,8 @@ static void test_child_edit_wmkeydown(void)
destroy_child_editcontrol(hwEdit);
}
static int got_en_setfocus = 0;
static int got_wm_capturechanged = 0;
static BOOL got_en_setfocus = FALSE;
static BOOL got_wm_capturechanged = FALSE;
static LRESULT (CALLBACK *p_edit_proc)(HWND, UINT, WPARAM, LPARAM);
static LRESULT CALLBACK edit4_wnd_procA(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
......@@ -2142,14 +2142,14 @@ static LRESULT CALLBACK edit4_wnd_procA(HWND hWnd, UINT msg, WPARAM wParam, LPAR
case WM_COMMAND:
switch (HIWORD(wParam)) {
case EN_SETFOCUS:
got_en_setfocus = 1;
got_en_setfocus = TRUE;
break;
}
break;
case WM_CAPTURECHANGED:
if (hWnd != (HWND)lParam)
{
got_wm_capturechanged = 1;
got_wm_capturechanged = TRUE;
pEndMenu();
}
break;
......
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