wininet: Fix InternetQueryOption test to pass under Windows.

This commit is contained in:
Dmitry Timoshkov 2006-02-06 20:59:21 +01:00 committed by Alexandre Julliard
parent 96a46367a9
commit 03434c728e
1 changed files with 3 additions and 4 deletions

View File

@ -63,10 +63,9 @@ void InternetQueryOptionA_test()
buffer=HeapAlloc(GetProcessHeap(),0,100); buffer=HeapAlloc(GetProcessHeap(),0,100);
retval=InternetQueryOptionA(hinet,INTERNET_OPTION_USER_AGENT,buffer,&len); retval=InternetQueryOptionA(hinet,INTERNET_OPTION_USER_AGENT,buffer,&len);
err=GetLastError(); 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) + 1,"Got wrong user agent length %ld instead of %d\n", len, strlen(useragent) + 1);
todo_wine ok(len == strlen(useragent),"Got wrong user agent length %ld instead of %d\n",len,strlen(useragent)); ok(!retval, "Got wrong return value %d\n", retval);
todo_wine ok(retval == 1,"Got wrong return value %d\n",retval); todo_wine ok(err == ERROR_INSUFFICIENT_BUFFER, "Got wrong error code %ld\n", err);
ok(err == 0xdeadbeef, "Got wrong error code %ld\n",err);
HeapFree(GetProcessHeap(),0,buffer); HeapFree(GetProcessHeap(),0,buffer);
hurl = InternetConnectA(hinet,"www.winehq.com",INTERNET_DEFAULT_HTTP_PORT,NULL,NULL,INTERNET_SERVICE_HTTP,0,0); hurl = InternetConnectA(hinet,"www.winehq.com",INTERNET_DEFAULT_HTTP_PORT,NULL,NULL,INTERNET_SERVICE_HTTP,0,0);