Commit ba2f2acc authored by Alexandre Julliard's avatar Alexandre Julliard

Fixed the list of accepted types passed to HttpOpenRequestA.

parent 247457c1
...@@ -84,7 +84,7 @@ void winapi_test(int flags) ...@@ -84,7 +84,7 @@ void winapi_test(int flags)
CHAR buffer[4000]; CHAR buffer[4000];
DWORD length; DWORD length;
DWORD out; DWORD out;
char *types; const char *types[2] = { "*", NULL };
HINTERNET hi,hic,hor; HINTERNET hi,hic,hor;
trace("Starting with flags 0x%x\n",flags); trace("Starting with flags 0x%x\n",flags);
...@@ -105,13 +105,10 @@ void winapi_test(int flags) ...@@ -105,13 +105,10 @@ void winapi_test(int flags)
if (hic == 0x0) goto abort; if (hic == 0x0) goto abort;
types = (char*)malloc(100);
strcpy(types,"*");
trace("HttpOpenRequestA <--\n"); trace("HttpOpenRequestA <--\n");
hor = HttpOpenRequestA(hic, "GET", hor = HttpOpenRequestA(hic, "GET",
"/about/", "/about/",
0x0,0x0,(const char**)&types,0x00400800,0xdeadbead); 0x0,0x0,types,0x00400800,0xdeadbead);
if (hor == 0x0 && GetLastError() == 12007 /* ERROR_INTERNET_NAME_NOT_RESOLVED */) { if (hor == 0x0 && GetLastError() == 12007 /* ERROR_INTERNET_NAME_NOT_RESOLVED */) {
/* /*
* If the internet name can't be resolved we are probably behind * If the internet name can't be resolved we are probably behind
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment