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
1f6e66ba
Commit
1f6e66ba
authored
Oct 22, 2013
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Oct 22, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Use BOOL type where appropriate.
parent
6eadc8ca
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
15 deletions
+15
-15
comboex.c
dlls/comctl32/tests/comboex.c
+3
-3
header.c
dlls/comctl32/tests/header.c
+3
-3
msg.h
dlls/comctl32/tests/msg.h
+1
-1
subclass.c
dlls/comctl32/tests/subclass.c
+3
-3
treeview.c
dlls/comctl32/tests/treeview.c
+5
-5
No files found.
dlls/comctl32/tests/comboex.c
View file @
1f6e66ba
...
...
@@ -473,7 +473,7 @@ static LRESULT CALLBACK ComboExTestWndProc(HWND hWnd, UINT msg, WPARAM wParam, L
return
0L
;
}
static
int
init
(
void
)
static
BOOL
init
(
void
)
{
HMODULE
hComctl32
;
BOOL
(
WINAPI
*
pInitCommonControlsEx
)(
const
INITCOMMONCONTROLSEX
*
);
...
...
@@ -485,7 +485,7 @@ static int init(void)
if
(
!
pInitCommonControlsEx
)
{
win_skip
(
"InitCommonControlsEx() is missing. Skipping the tests
\n
"
);
return
0
;
return
FALSE
;
}
iccex
.
dwSize
=
sizeof
(
iccex
);
iccex
.
dwICC
=
ICC_USEREX_CLASSES
;
...
...
@@ -510,7 +510,7 @@ static int init(void)
assert
(
hComboExParentWnd
!=
NULL
);
hMainHinst
=
GetModuleHandleA
(
NULL
);
return
1
;
return
TRUE
;
}
static
void
cleanup
(
void
)
...
...
dlls/comctl32/tests/header.c
View file @
1f6e66ba
...
...
@@ -1635,7 +1635,7 @@ static LRESULT CALLBACK HeaderTestWndProc(HWND hWnd, UINT msg, WPARAM wParam, LP
return
0L
;
}
static
int
init
(
void
)
static
BOOL
init
(
void
)
{
HMODULE
hComctl32
;
BOOL
(
WINAPI
*
pInitCommonControlsEx
)(
const
INITCOMMONCONTROLSEX
*
);
...
...
@@ -1650,7 +1650,7 @@ static int init(void)
if
(
!
pInitCommonControlsEx
)
{
skip
(
"InitCommonControlsEx() is missing. Skipping the tests
\n
"
);
return
0
;
return
FALSE
;
}
iccex
.
dwSize
=
sizeof
(
iccex
);
...
...
@@ -1686,7 +1686,7 @@ static int init(void)
NULL
,
NULL
,
GetModuleHandleA
(
NULL
),
0
);
assert
(
hHeaderParentWnd
!=
NULL
);
ShowWindow
(
hHeaderParentWnd
,
SW_SHOW
);
return
1
;
return
TRUE
;
}
/* maximum 8 items allowed */
...
...
dlls/comctl32/tests/msg.h
View file @
1f6e66ba
...
...
@@ -106,7 +106,7 @@ static inline void flush_sequences(struct msg_sequence **seq, int n)
}
static
void
ok_sequence_
(
struct
msg_sequence
**
seq
,
int
sequence_index
,
const
struct
message
*
expected
,
const
char
*
context
,
int
todo
,
const
struct
message
*
expected
,
const
char
*
context
,
BOOL
todo
,
const
char
*
file
,
int
line
)
{
struct
msg_sequence
*
msg_seq
=
seq
[
sequence_index
];
...
...
dlls/comctl32/tests/subclass.c
View file @
1f6e66ba
...
...
@@ -279,7 +279,7 @@ static BOOL RegisterWindowClasses(void)
return
TRUE
;
}
static
int
init_function_pointers
(
void
)
static
BOOL
init_function_pointers
(
void
)
{
HMODULE
hmod
;
void
*
ptr
;
...
...
@@ -299,7 +299,7 @@ static int init_function_pointers(void)
if
(
!
pSetWindowSubclass
||
!
pRemoveWindowSubclass
||
!
pDefSubclassProc
)
{
win_skip
(
"SetWindowSubclass and friends are not available
\n
"
);
return
0
;
return
FALSE
;
}
/* test named exports */
...
...
@@ -316,7 +316,7 @@ static int init_function_pointers(void)
#undef TESTNAMED
}
return
1
;
return
TRUE
;
}
START_TEST
(
subclass
)
...
...
dlls/comctl32/tests/treeview.c
View file @
1f6e66ba
...
...
@@ -957,8 +957,8 @@ static void test_get_set_tooltips(void)
static
void
test_get_set_unicodeformat
(
void
)
{
BOOL
bPreviousSetting
=
0
;
BOOL
bNewSetting
=
0
;
BOOL
bPreviousSetting
=
FALSE
;
BOOL
bNewSetting
=
FALSE
;
HWND
hTree
;
hTree
=
create_treeview_control
(
0
);
...
...
@@ -966,19 +966,19 @@ static void test_get_set_unicodeformat(void)
/* Check that an invalid format returned by NF_QUERY defaults to ANSI */
bPreviousSetting
=
(
BOOL
)
SendMessage
(
hTree
,
TVM_GETUNICODEFORMAT
,
0
,
0
);
ok
(
bPreviousSetting
==
0
,
"Format should be ANSI.
\n
"
);
ok
(
bPreviousSetting
==
FALSE
,
"Format should be ANSI.
\n
"
);
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
/* Set to Unicode */
bPreviousSetting
=
(
BOOL
)
SendMessage
(
hTree
,
TVM_SETUNICODEFORMAT
,
1
,
0
);
bNewSetting
=
(
BOOL
)
SendMessage
(
hTree
,
TVM_GETUNICODEFORMAT
,
0
,
0
);
ok
(
bNewSetting
==
1
,
"Unicode setting did not work.
\n
"
);
ok
(
bNewSetting
==
TRUE
,
"Unicode setting did not work.
\n
"
);
/* Set to ANSI */
SendMessage
(
hTree
,
TVM_SETUNICODEFORMAT
,
0
,
0
);
bNewSetting
=
(
BOOL
)
SendMessage
(
hTree
,
TVM_GETUNICODEFORMAT
,
0
,
0
);
ok
(
bNewSetting
==
0
,
"ANSI setting did not work.
\n
"
);
ok
(
bNewSetting
==
FALSE
,
"ANSI setting did not work.
\n
"
);
/* Revert to original setting */
SendMessage
(
hTree
,
TVM_SETUNICODEFORMAT
,
bPreviousSetting
,
0
);
...
...
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