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
f0e823f2
Commit
f0e823f2
authored
Jun 04, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jun 04, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
localui/tests: Use the available ARRAY_SIZE() macro.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fddb3896
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
localui.c
dlls/localui/tests/localui.c
+2
-2
No files found.
dlls/localui/tests/localui.c
View file @
f0e823f2
...
@@ -310,7 +310,7 @@ START_TEST(localui)
...
@@ -310,7 +310,7 @@ START_TEST(localui)
while
(((
lpt_present
==
NULL
)
||
(
lpt_absent
==
NULL
))
&&
id
<
9
)
{
while
(((
lpt_present
==
NULL
)
||
(
lpt_absent
==
NULL
))
&&
id
<
9
)
{
id
++
;
id
++
;
sprintf
(
bufferA
,
fmt_lptA
,
id
);
sprintf
(
bufferA
,
fmt_lptA
,
id
);
MultiByteToWideChar
(
CP_ACP
,
0
,
bufferA
,
-
1
,
bufferW
,
sizeof
(
bufferW
)
/
sizeof
(
WCHAR
)
);
MultiByteToWideChar
(
CP_ACP
,
0
,
bufferA
,
-
1
,
bufferW
,
ARRAY_SIZE
(
bufferW
)
);
pi2
=
find_portinfo2
(
bufferW
);
pi2
=
find_portinfo2
(
bufferW
);
if
(
pi2
&&
(
lpt_present
==
NULL
))
lpt_present
=
pi2
;
if
(
pi2
&&
(
lpt_present
==
NULL
))
lpt_present
=
pi2
;
if
(
!
pi2
&&
(
lpt_absent
==
NULL
))
lpt_absent
=
strdupW
(
bufferW
);
if
(
!
pi2
&&
(
lpt_absent
==
NULL
))
lpt_absent
=
strdupW
(
bufferW
);
...
@@ -321,7 +321,7 @@ START_TEST(localui)
...
@@ -321,7 +321,7 @@ START_TEST(localui)
while
(((
com_present
==
NULL
)
||
(
com_absent
==
NULL
))
&&
id
<
9
)
{
while
(((
com_present
==
NULL
)
||
(
com_absent
==
NULL
))
&&
id
<
9
)
{
id
++
;
id
++
;
sprintf
(
bufferA
,
fmt_comA
,
id
);
sprintf
(
bufferA
,
fmt_comA
,
id
);
MultiByteToWideChar
(
CP_ACP
,
0
,
bufferA
,
-
1
,
bufferW
,
sizeof
(
bufferW
)
/
sizeof
(
WCHAR
)
);
MultiByteToWideChar
(
CP_ACP
,
0
,
bufferA
,
-
1
,
bufferW
,
ARRAY_SIZE
(
bufferW
)
);
pi2
=
find_portinfo2
(
bufferW
);
pi2
=
find_portinfo2
(
bufferW
);
if
(
pi2
&&
(
com_present
==
NULL
))
com_present
=
pi2
;
if
(
pi2
&&
(
com_present
==
NULL
))
com_present
=
pi2
;
if
(
!
pi2
&&
(
com_absent
==
NULL
))
com_absent
=
strdupW
(
bufferW
);
if
(
!
pi2
&&
(
com_absent
==
NULL
))
com_absent
=
strdupW
(
bufferW
);
...
...
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