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
166f8e6c
Commit
166f8e6c
authored
Jun 02, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jun 04, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oledb32/tests: Use the available ARRAY_SIZE() macro.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c13145af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
convert.c
dlls/oledb32/tests/convert.c
+4
-4
No files found.
dlls/oledb32/tests/convert.c
View file @
166f8e6c
...
...
@@ -221,8 +221,8 @@ static void test_canconvert(void)
return
;
}
for
(
src_idx
=
0
;
src_idx
<
sizeof
(
simple_convert
)
/
sizeof
(
simple_convert
[
0
]
);
src_idx
++
)
for
(
dst_idx
=
0
;
dst_idx
<
sizeof
(
simple_convert
)
/
sizeof
(
simple_convert
[
0
]
);
dst_idx
++
)
for
(
src_idx
=
0
;
src_idx
<
ARRAY_SIZE
(
simple_convert
);
src_idx
++
)
for
(
dst_idx
=
0
;
dst_idx
<
ARRAY_SIZE
(
simple_convert
);
dst_idx
++
)
{
BOOL
expect
,
simple_expect
;
simple_expect
=
(
simple_convert
[
src_idx
].
can_convert_to
>>
dst_idx
)
&
1
;
...
...
@@ -1479,7 +1479,7 @@ static void test_converttowstr(void)
ok
(
dst_status
==
DBSTATUS_S_OK
,
"got %08x
\n
"
,
dst_status
);
ok
(
dst_len
==
sizeof
(
hexpacked_w
)
*
4
,
"got %ld
\n
"
,
dst_len
);
ok
(
!
lstrcmpW
(
hexunpacked_w
,
dst
),
"got %s
\n
"
,
wine_dbgstr_w
(
dst
));
ok
(
dst
[
sizeof
(
hexpacked_w
)
/
sizeof
(
WCHAR
)
*
4
+
1
]
==
0xcccc
,
"clobbered buffer
\n
"
);
ok
(
dst
[
ARRAY_SIZE
(
hexpacked_w
)
*
4
+
1
]
==
0xcccc
,
"clobbered buffer
\n
"
);
memcpy
(
src
,
hexpacked_w
,
sizeof
(
hexpacked_w
));
memset
(
dst
,
0xcc
,
sizeof
(
dst
));
...
...
@@ -2045,7 +2045,7 @@ static void test_converttostr(void)
ok
(
dst_status
==
DBSTATUS_S_OK
,
"got %08x
\n
"
,
dst_status
);
ok
(
dst_len
==
sizeof
(
hexpacked_a
)
*
2
,
"got %ld
\n
"
,
dst_len
);
ok
(
!
lstrcmpA
(
hexunpacked_a
,
dst
),
"got %s
\n
"
,
dst
);
ok
(
dst
[
sizeof
(
hexpacked_a
)
/
sizeof
(
char
)
*
4
+
1
]
==
(
char
)
0xcc
,
"clobbered buffer
\n
"
);
ok
(
dst
[
ARRAY_SIZE
(
hexpacked_a
)
*
4
+
1
]
==
(
char
)
0xcc
,
"clobbered buffer
\n
"
);
memcpy
(
src
,
hexpacked_a
,
sizeof
(
hexpacked_a
));
memset
(
dst
,
0xcc
,
sizeof
(
dst
));
...
...
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