wininet: Fix InternetQueryOption test to pass under Windows.
This commit is contained in:
parent
96a46367a9
commit
03434c728e
|
@ -63,10 +63,9 @@ void InternetQueryOptionA_test()
|
|||
buffer=HeapAlloc(GetProcessHeap(),0,100);
|
||||
retval=InternetQueryOptionA(hinet,INTERNET_OPTION_USER_AGENT,buffer,&len);
|
||||
err=GetLastError();
|
||||
todo_wine ok(!strcmp(useragent,buffer),"Got wrong user agent string %s instead of %s\n",buffer,useragent);
|
||||
todo_wine ok(len == strlen(useragent),"Got wrong user agent length %ld instead of %d\n",len,strlen(useragent));
|
||||
todo_wine ok(retval == 1,"Got wrong return value %d\n",retval);
|
||||
ok(err == 0xdeadbeef, "Got wrong error code %ld\n",err);
|
||||
todo_wine ok(len == strlen(useragent) + 1,"Got wrong user agent length %ld instead of %d\n", len, strlen(useragent) + 1);
|
||||
ok(!retval, "Got wrong return value %d\n", retval);
|
||||
todo_wine ok(err == ERROR_INSUFFICIENT_BUFFER, "Got wrong error code %ld\n", err);
|
||||
HeapFree(GetProcessHeap(),0,buffer);
|
||||
|
||||
hurl = InternetConnectA(hinet,"www.winehq.com",INTERNET_DEFAULT_HTTP_PORT,NULL,NULL,INTERNET_SERVICE_HTTP,0,0);
|
||||
|
|
Loading…
Reference in New Issue