Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
bb2be173
Commit
bb2be173
authored
Nov 05, 2013
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Nov 05, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Use BOOL type where appropriate.
parent
77ee42fd
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
10 deletions
+11
-10
combo.c
dlls/user32/tests/combo.c
+1
-1
cursoricon.c
dlls/user32/tests/cursoricon.c
+1
-1
dce.c
dlls/user32/tests/dce.c
+4
-3
dialog.c
dlls/user32/tests/dialog.c
+1
-1
edit.c
dlls/user32/tests/edit.c
+4
-4
input.c
dlls/user32/tests/input.c
+0
-0
No files found.
dlls/user32/tests/combo.c
View file @
bb2be173
...
...
@@ -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
);
...
...
dlls/user32/tests/cursoricon.c
View file @
bb2be173
...
...
@@ -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
)
{
...
...
dlls/user32/tests/dce.c
View file @
bb2be173
...
...
@@ -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
);
}
}
...
...
dlls/user32/tests/dialog.c
View file @
bb2be173
...
...
@@ -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
;
...
...
dlls/user32/tests/edit.c
View file @
bb2be173
...
...
@@ -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
;
...
...
dlls/user32/tests/input.c
View file @
bb2be173
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment