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
91083d45
Commit
91083d45
authored
Jun 22, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Jun 27, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dnsapi: ntdll_umbstowcs() deals in characters, not bytes.
parent
f66880c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
libresolv.c
dlls/dnsapi/libresolv.c
+4
-4
No files found.
dlls/dnsapi/libresolv.c
View file @
91083d45
...
...
@@ -127,7 +127,7 @@ static NTSTATUS resolv_get_searchlist( void *args )
const
struct
get_searchlist_params
*
params
=
args
;
DNS_TXT_DATAW
*
list
=
params
->
list
;
DWORD
i
,
needed
,
str_needed
=
0
;
char
*
ptr
,
*
end
;
WCHAR
*
ptr
,
*
end
;
init_resolver
();
...
...
@@ -145,11 +145,11 @@ static NTSTATUS resolv_get_searchlist( void *args )
*
params
->
len
=
needed
;
list
->
dwStringCount
=
i
;
ptr
=
(
char
*
)(
list
->
pStringArray
+
i
);
end
=
ptr
+
str_needed
;
ptr
=
(
WCHAR
*
)(
list
->
pStringArray
+
i
);
end
=
ptr
+
str_needed
/
sizeof
(
WCHAR
)
;
for
(
i
=
0
;
i
<
MAXDNSRCH
+
1
&&
_res
.
dnsrch
[
i
];
i
++
)
{
list
->
pStringArray
[
i
]
=
(
WCHAR
*
)
ptr
;
list
->
pStringArray
[
i
]
=
ptr
;
ptr
+=
ntdll_umbstowcs
(
_res
.
dnsrch
[
i
],
strlen
(
_res
.
dnsrch
[
i
])
+
1
,
list
->
pStringArray
[
i
],
end
-
ptr
);
}
...
...
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