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
46919f21
Commit
46919f21
authored
Mar 28, 2013
by
Piotr Caban
Committed by
Alexandre Julliard
Mar 28, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Fixed copy-paste error in IdnToUnicode.
parent
280f8237
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
locale.c
dlls/kernel32/locale.c
+3
-3
locale.c
dlls/kernel32/tests/locale.c
+4
-0
No files found.
dlls/kernel32/locale.c
View file @
46919f21
...
...
@@ -4480,8 +4480,8 @@ INT WINAPI IdnToUnicode(DWORD dwFlags, LPCWSTR lpASCIICharStr, INT cchASCIIChar,
return
0
;
}
if
((
dwFlags
&
IDN_USE_STD3_ASCII_RULES
)
&&
(
lp
Unicode
CharStr
[
label_start
]
==
'-'
||
lp
Unicode
CharStr
[
label_end
-
1
]
==
'-'
))
{
if
((
dwFlags
&
IDN_USE_STD3_ASCII_RULES
)
&&
(
lp
ASCII
CharStr
[
label_start
]
==
'-'
||
lp
ASCII
CharStr
[
label_end
-
1
]
==
'-'
))
{
SetLastError
(
ERROR_INVALID_NAME
);
return
0
;
}
...
...
@@ -4494,7 +4494,7 @@ INT WINAPI IdnToUnicode(DWORD dwFlags, LPCWSTR lpASCIICharStr, INT cchASCIIChar,
tolowerW
(
lpASCIICharStr
[
label_start
])
!=
'x'
||
tolowerW
(
lpASCIICharStr
[
label_start
+
1
])
!=
'n'
||
lpASCIICharStr
[
label_start
+
2
]
!=
'-'
||
lpASCIICharStr
[
label_start
+
3
]
!=
'-'
)
{
if
(
label_end
<
cch
Unicode
Char
)
if
(
label_end
<
cch
ASCII
Char
)
label_end
++
;
if
(
!
lpUnicodeCharStr
)
{
...
...
dlls/kernel32/tests/locale.c
View file @
46919f21
...
...
@@ -3386,6 +3386,10 @@ static void test_IdnToUnicode(void)
for
(
i
=
0
;
i
<
sizeof
(
test_data
)
/
sizeof
(
*
test_data
);
i
++
)
{
ret
=
pIdnToUnicode
(
test_data
[
i
].
flags
,
test_data
[
i
].
in
,
test_data
[
i
].
in_len
,
NULL
,
0
);
ok
(
ret
==
test_data
[
i
].
ret
,
"%d) ret = %d
\n
"
,
i
,
ret
);
SetLastError
(
0xdeadbeef
);
ret
=
pIdnToUnicode
(
test_data
[
i
].
flags
,
test_data
[
i
].
in
,
test_data
[
i
].
in_len
,
buf
,
sizeof
(
buf
));
...
...
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