Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
3ba9ba7a
Commit
3ba9ba7a
authored
Jul 18, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 19, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oledb32: Use the ARRAY_SIZE() macro.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3a61d1d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
datainit.c
dlls/oledb32/datainit.c
+4
-4
No files found.
dlls/oledb32/datainit.c
View file @
3ba9ba7a
...
...
@@ -328,8 +328,8 @@ static HRESULT convert_dbproperty_mode(const WCHAR *src, VARIANT *dest)
};
struct
mode_propval
*
prop
;
if
((
prop
=
bsearch
(
src
,
mode_propvals
,
sizeof
(
mode_propvals
)
/
sizeof
(
*
mode_propvals
),
sizeof
(
struct
mode_propval
),
dbmodeprop_compare
)))
if
((
prop
=
bsearch
(
src
,
mode_propvals
,
ARRAY_SIZE
(
mode_propvals
),
sizeof
(
struct
mode_propval
),
dbmodeprop_compare
)))
{
V_VT
(
dest
)
=
VT_I4
;
V_I4
(
dest
)
=
prop
->
value
;
...
...
@@ -511,7 +511,7 @@ static const struct dbproperty *get_known_dprop_descr(BSTR name)
int
min
,
max
,
n
;
min
=
0
;
max
=
sizeof
(
dbproperties
)
/
sizeof
(
struct
dbproperty
)
-
1
;
max
=
ARRAY_SIZE
(
dbproperties
)
-
1
;
while
(
min
<=
max
)
{
...
...
@@ -662,7 +662,7 @@ HRESULT get_data_source(IUnknown *outer, DWORD clsctx, LPWSTR initstring, REFIID
WCHAR
*
start
,
*
progid
;
int
len
;
prov
+=
sizeof
(
providerW
)
/
sizeof
(
WCHAR
)
-
1
;
prov
+=
ARRAY_SIZE
(
providerW
)
-
1
;
start
=
prov
;
while
(
*
prov
&&
*
prov
!=
';'
)
++
prov
;
...
...
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