wininet/tests: Write-strings warnings fix
Andrew Talbot
Andrew.Talbot at talbotville.com
Thu Aug 10 13:24:35 CDT 2006
Changelog:
wininet/tests: Write-strings warnings fix.
diff -urN a/dlls/wininet/tests/http.c b/dlls/wininet/tests/http.c
--- a/dlls/wininet/tests/http.c 2006-05-30 19:08:33.000000000 +0100
+++ b/dlls/wininet/tests/http.c 2006-08-10 19:06:15.000000000 +0100
@@ -906,7 +906,7 @@
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 @@
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 @@
/* 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-patches
mailing list