Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
20b43a9a
Commit
20b43a9a
authored
Jun 27, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jun 27, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Avoid a variable that holds an ARRAY_SIZE().
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e186f3ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
class.c
dlls/user32/tests/class.c
+2
-3
No files found.
dlls/user32/tests/class.c
View file @
20b43a9a
...
...
@@ -645,7 +645,6 @@ static void test_builtinproc(void)
"ScrollBar"
,
"#32770"
,
/* dialog */
};
static
const
int
NUM_NORMAL_CLASSES
=
(
sizeof
(
NORMAL_CLASSES
)
/
sizeof
(
NORMAL_CLASSES
[
0
]));
static
const
char
classA
[]
=
"deftest"
;
static
const
WCHAR
classW
[]
=
{
'd'
,
'e'
,
'f'
,
't'
,
'e'
,
's'
,
't'
,
0
};
WCHAR
unistring
[]
=
{
0x142
,
0x40e
,
0x3b4
,
0
};
/* a string that would be destroyed by a W->A->W conversion */
...
...
@@ -656,7 +655,7 @@ static void test_builtinproc(void)
WCHAR
buf
[
128
];
ATOM
atom
;
HWND
hwnd
;
int
i
;
unsigned
int
i
;
pDefWindowProcA
=
(
void
*
)
GetProcAddress
(
GetModuleHandleA
(
"user32.dll"
),
"DefWindowProcA"
);
pDefWindowProcW
=
(
void
*
)
GetProcAddress
(
GetModuleHandleA
(
"user32.dll"
),
"DefWindowProcW"
);
...
...
@@ -771,7 +770,7 @@ static void test_builtinproc(void)
/* For most of the builtin controls both GetWindowLongPtrA and W returns a pointer that is executed directly
* by CallWindowProcA/W */
for
(
i
=
0
;
i
<
NUM_NORMAL_CLASSES
;
i
++
)
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
NORMAL_CLASSES
)
;
i
++
)
{
WNDPROC
procA
,
procW
;
hwnd
=
CreateWindowExA
(
0
,
NORMAL_CLASSES
[
i
],
classA
,
WS_OVERLAPPEDWINDOW
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
680
,
260
,
...
...
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