mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
wininet/tests: Write-strings warnings fix.
This commit is contained in:
parent
2aed652c01
commit
5ea47faf8b
@ -906,7 +906,7 @@ static DWORD CALLBACK server_thread(LPVOID param)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void test_basic_request(int port, char *url)
|
||||
static void test_basic_request(int port, const char *url)
|
||||
{
|
||||
HINTERNET hi, hc, hr;
|
||||
DWORD r, count;
|
||||
@ -999,6 +999,8 @@ static void test_proxy_direct(int port)
|
||||
HINTERNET hi, hc, hr;
|
||||
DWORD r, sz;
|
||||
char buffer[0x40];
|
||||
static CHAR username[] = "mike",
|
||||
password[] = "1101";
|
||||
|
||||
sprintf(buffer, "localhost:%d\n", port);
|
||||
hi = InternetOpen(NULL, INTERNET_OPEN_TYPE_PROXY, buffer, NULL, 0);
|
||||
@ -1022,10 +1024,10 @@ static void test_proxy_direct(int port)
|
||||
|
||||
/* set the user + password then try again */
|
||||
todo_wine {
|
||||
r = InternetSetOption(hr, INTERNET_OPTION_PROXY_USERNAME, "mike", 4);
|
||||
r = InternetSetOption(hr, INTERNET_OPTION_PROXY_USERNAME, username, 4);
|
||||
ok(r, "failed to set user\n");
|
||||
|
||||
r = InternetSetOption(hr, INTERNET_OPTION_PROXY_PASSWORD, "1101", 4);
|
||||
r = InternetSetOption(hr, INTERNET_OPTION_PROXY_PASSWORD, password, 4);
|
||||
ok(r, "failed to set password\n");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user