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
5085f4f9
Commit
5085f4f9
authored
May 30, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
May 31, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
serialui/tests: Use the available ARRAY_SIZE() macro.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a49b28cc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
confdlg.c
dlls/serialui/tests/confdlg.c
+2
-2
No files found.
dlls/serialui/tests/confdlg.c
View file @
5085f4f9
...
...
@@ -165,7 +165,7 @@ static void test_drvCommConfigDialogW(void)
/* test ports "com1" - "com4" */
for
(
i
=
1
;
i
<
5
;
i
++
)
{
sprintf
(
bufferA
,
fmt_comA
,
i
);
MultiByteToWideChar
(
CP_ACP
,
0
,
bufferA
,
-
1
,
bufferW
,
sizeof
(
bufferW
)
/
sizeof
(
WCHAR
)
);
MultiByteToWideChar
(
CP_ACP
,
0
,
bufferA
,
-
1
,
bufferW
,
ARRAY_SIZE
(
bufferW
)
);
len
=
sizeof
(
pCC
);
ZeroMemory
(
pCC
,
sizeof
(
pCC
));
SetLastError
(
0xdeadbeef
);
...
...
@@ -346,7 +346,7 @@ static void test_drvGetDefaultCommConfigW(void)
/* test ports "com0" - "com10" */
for
(
i
=
0
;
i
<
11
;
i
++
)
{
sprintf
(
bufferA
,
fmt_comA
,
i
);
MultiByteToWideChar
(
CP_ACP
,
0
,
bufferA
,
-
1
,
bufferW
,
sizeof
(
bufferW
)
/
sizeof
(
WCHAR
)
);
MultiByteToWideChar
(
CP_ACP
,
0
,
bufferA
,
-
1
,
bufferW
,
ARRAY_SIZE
(
bufferW
)
);
len
=
sizeof
(
pCC
);
ZeroMemory
(
pCC
,
sizeof
(
pCC
));
SetLastError
(
0xdeadbeef
);
...
...
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