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:
Hans Leidekker 2023-01-26 16:45:14 +01:00 committed by Alexandre Julliard
parent 84f1b60e33
commit 8e942f9e41

View file

@ -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) );