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
a9a04fb3
Commit
a9a04fb3
authored
Sep 13, 2006
by
Hans Leidekker
Committed by
Alexandre Julliard
Sep 14, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dnsapi: Use the proper type for the return value in dns_do_query_netbios().
Remove some unnecessary casts.
parent
0c0d1903
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
query.c
dlls/dnsapi/query.c
+6
-5
record.c
dlls/dnsapi/record.c
+2
-2
No files found.
dlls/dnsapi/query.c
View file @
a9a04fb3
...
...
@@ -485,6 +485,7 @@ static DNS_STATUS dns_do_query_netbios( PCSTR name, DNS_RECORDA **recp )
FIND_NAME_HEADER
*
header
;
DNS_RECORDA
*
record
=
NULL
;
unsigned
int
i
,
len
;
DNS_STATUS
status
=
ERROR_INVALID_NAME
;
len
=
strlen
(
name
);
if
(
len
>=
NCBNAMSZ
)
return
DNS_ERROR_RCODE_NAME_ERROR
;
...
...
@@ -509,7 +510,7 @@ static DNS_STATUS dns_do_query_netbios( PCSTR name, DNS_RECORDA **recp )
record
=
dns_zero_alloc
(
sizeof
(
DNS_RECORDA
)
);
if
(
!
record
)
{
ret
=
ERROR_NOT_ENOUGH_MEMORY
;
status
=
ERROR_NOT_ENOUGH_MEMORY
;
goto
exit
;
}
else
...
...
@@ -517,7 +518,7 @@ static DNS_STATUS dns_do_query_netbios( PCSTR name, DNS_RECORDA **recp )
record
->
pName
=
dns_strdup_u
(
name
);
if
(
!
record
->
pName
)
{
ret
=
ERROR_NOT_ENOUGH_MEMORY
;
status
=
ERROR_NOT_ENOUGH_MEMORY
;
goto
exit
;
}
...
...
@@ -536,12 +537,12 @@ static DNS_STATUS dns_do_query_netbios( PCSTR name, DNS_RECORDA **recp )
exit:
DNS_RRSET_TERMINATE
(
rrset
);
if
(
ret
!=
ERROR_SUCCESS
)
if
(
status
!=
ERROR_SUCCESS
)
DnsRecordListFree
(
rrset
.
pFirstRR
,
DnsFreeRecordList
);
else
*
recp
=
(
DNS_RECORDA
*
)
rrset
.
pFirstRR
;
return
ret
;
return
status
;
}
/* The resolver lock must be held and res_init() must have been
...
...
@@ -816,7 +817,7 @@ DNS_STATUS WINAPI DnsQueryConfig( DNS_CONFIG_TYPE config, DWORD flag, PWSTR adap
LOCK_RESOLVER
();
res_init
();
ret
=
dns_get_serverlist
(
(
IP4_ARRAY
*
)
buffer
,
len
);
ret
=
dns_get_serverlist
(
buffer
,
len
);
UNLOCK_RESOLVER
();
break
;
...
...
dlls/dnsapi/record.c
View file @
a9a04fb3
...
...
@@ -115,9 +115,9 @@ const char *dns_type_to_str( unsigned short type )
static
int
dns_strcmpX
(
LPCVOID
str1
,
LPCVOID
str2
,
BOOL
wide
)
{
if
(
wide
)
return
lstrcmpiW
(
(
LPCWSTR
)
str1
,
(
LPCWSTR
)
str2
);
return
lstrcmpiW
(
str1
,
str2
);
else
return
lstrcmpiA
(
(
LPCSTR
)
str1
,
(
LPCSTR
)
str2
);
return
lstrcmpiA
(
str1
,
str2
);
}
/******************************************************************************
...
...
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