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
8e942f9e
Commit
8e942f9e
authored
Jan 26, 2023
by
Hans Leidekker
Committed by
Alexandre Julliard
Jan 26, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp/tests: Fix test failures with the UTF-8 code page.
Wine-Bug:
https://bugs.winehq.org//show_bug.cgi?id=52936
parent
84f1b60e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
url.c
dlls/winhttp/tests/url.c
+4
-4
No files found.
dlls/winhttp/tests/url.c
View file @
8e942f9e
...
@@ -304,8 +304,8 @@ static void WinHttpCreateUrl_test( void )
...
@@ -304,8 +304,8 @@ static void WinHttpCreateUrl_test( void )
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
ret
=
WinHttpCreateUrl
(
&
uc
,
ICU_ESCAPE
,
url
,
&
len
);
ret
=
WinHttpCreateUrl
(
&
uc
,
ICU_ESCAPE
,
url
,
&
len
);
err
=
GetLastError
();
err
=
GetLastError
();
ok
(
!
ret
,
"expected failure
\n
"
);
ok
(
!
ret
||
GetACP
()
==
CP_UTF8
,
"expected failure
\n
"
);
ok
(
err
==
ERROR_INVALID_PARAMETER
,
"got %lu
\n
"
,
err
);
ok
(
err
==
ERROR_INVALID_PARAMETER
||
(
!
err
&&
GetACP
()
==
CP_UTF8
)
,
"got %lu
\n
"
,
err
);
/* extra info with Unicode characters, no ICU_ESCAPE */
/* extra info with Unicode characters, no ICU_ESCAPE */
memset
(
&
uc
,
0
,
sizeof
(
uc
)
);
memset
(
&
uc
,
0
,
sizeof
(
uc
)
);
...
@@ -344,8 +344,8 @@ static void WinHttpCreateUrl_test( void )
...
@@ -344,8 +344,8 @@ static void WinHttpCreateUrl_test( void )
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
ret
=
WinHttpCreateUrl
(
&
uc
,
ICU_ESCAPE
,
url
,
&
len
);
ret
=
WinHttpCreateUrl
(
&
uc
,
ICU_ESCAPE
,
url
,
&
len
);
err
=
GetLastError
();
err
=
GetLastError
();
ok
(
!
ret
,
"expected failure
\n
"
);
ok
(
!
ret
||
GetACP
()
==
CP_UTF8
,
"expected failure
\n
"
);
ok
(
err
==
ERROR_INVALID_PARAMETER
,
"got %lu
\n
"
,
err
);
ok
(
err
==
ERROR_INVALID_PARAMETER
||
(
!
err
&&
GetACP
()
==
CP_UTF8
)
,
"got %lu
\n
"
,
err
);
/* path with Unicode characters, no ICU_ESCAPE */
/* path with Unicode characters, no ICU_ESCAPE */
memset
(
&
uc
,
0
,
sizeof
(
uc
)
);
memset
(
&
uc
,
0
,
sizeof
(
uc
)
);
...
...
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