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
8ba2b2da
Commit
8ba2b2da
authored
Jul 20, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Aug 14, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dnsapi: Use the ARRAY_SIZE() macro.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
84d4887f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
query.c
dlls/dnsapi/query.c
+3
-3
No files found.
dlls/dnsapi/query.c
View file @
8ba2b2da
...
...
@@ -618,7 +618,7 @@ static DNS_STATUS dns_do_query( PCSTR name, WORD type, DWORD options, PDNS_RECOR
goto
exit
;
}
for
(
i
=
0
;
i
<
sizeof
(
sections
)
/
sizeof
(
sections
[
0
]
);
i
++
)
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
sections
);
i
++
)
{
for
(
num
=
0
;
num
<
ns_msg_count
(
msg
,
sections
[
i
]
);
num
++
)
{
...
...
@@ -771,7 +771,7 @@ static DNS_STATUS dns_get_hostname_a( COMPUTER_NAME_FORMAT format,
PSTR
buffer
,
PDWORD
len
)
{
char
name
[
256
];
DWORD
size
=
sizeof
(
name
)
/
sizeof
(
name
[
0
]
);
DWORD
size
=
ARRAY_SIZE
(
name
);
if
(
!
GetComputerNameExA
(
format
,
name
,
&
size
))
return
DNS_ERROR_NAME_DOES_NOT_EXIST
;
...
...
@@ -790,7 +790,7 @@ static DNS_STATUS dns_get_hostname_w( COMPUTER_NAME_FORMAT format,
PWSTR
buffer
,
PDWORD
len
)
{
WCHAR
name
[
256
];
DWORD
size
=
sizeof
(
name
)
/
sizeof
(
name
[
0
]
);
DWORD
size
=
ARRAY_SIZE
(
name
);
if
(
!
GetComputerNameExW
(
format
,
name
,
&
size
))
return
DNS_ERROR_NAME_DOES_NOT_EXIST
;
...
...
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