mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-03 02:51:19 +00:00
winhttp/tests: Fix test failures with the UTF-8 code page.
Wine-Bug: https://bugs.winehq.org//show_bug.cgi?id=52936
This commit is contained in:
parent
84f1b60e33
commit
8e942f9e41
|
@ -304,8 +304,8 @@ static void WinHttpCreateUrl_test( void )
|
|||
SetLastError( 0xdeadbeef );
|
||||
ret = WinHttpCreateUrl( &uc, ICU_ESCAPE, url, &len );
|
||||
err = GetLastError();
|
||||
ok( !ret, "expected failure\n" );
|
||||
ok( err == ERROR_INVALID_PARAMETER, "got %lu\n", err );
|
||||
ok( !ret || GetACP() == CP_UTF8, "expected failure\n" );
|
||||
ok( err == ERROR_INVALID_PARAMETER || (!err && GetACP() == CP_UTF8), "got %lu\n", err );
|
||||
|
||||
/* extra info with Unicode characters, no ICU_ESCAPE */
|
||||
memset( &uc, 0, sizeof(uc) );
|
||||
|
@ -344,8 +344,8 @@ static void WinHttpCreateUrl_test( void )
|
|||
SetLastError( 0xdeadbeef );
|
||||
ret = WinHttpCreateUrl( &uc, ICU_ESCAPE, url, &len );
|
||||
err = GetLastError();
|
||||
ok( !ret, "expected failure\n" );
|
||||
ok( err == ERROR_INVALID_PARAMETER, "got %lu\n", err );
|
||||
ok( !ret || GetACP() == CP_UTF8, "expected failure\n" );
|
||||
ok( err == ERROR_INVALID_PARAMETER || (!err && GetACP() == CP_UTF8), "got %lu\n", err );
|
||||
|
||||
/* path with Unicode characters, no ICU_ESCAPE */
|
||||
memset( &uc, 0, sizeof(uc) );
|
||||
|
|
Loading…
Reference in a new issue