Andrew Talbot : wininet/tests: Write-strings warnings fix.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Aug 11 04:58:46 CDT 2006
Module: wine
Branch: master
Commit: 5ea47faf8bc320756ed775dfe6f48456b02cc44c
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=5ea47faf8bc320756ed775dfe6f48456b02cc44c
Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date: Thu Aug 10 19:24:35 2006 +0100
wininet/tests: Write-strings warnings fix.
---
dlls/wininet/tests/http.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/dlls/wininet/tests/http.c b/dlls/wininet/tests/http.c
index 4992202..404d705 100644
--- a/dlls/wininet/tests/http.c
+++ b/dlls/wininet/tests/http.c
@@ -906,7 +906,7 @@ static DWORD CALLBACK server_thread(LPVO
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");
}
More information about the wine-cvs
mailing list