RESEND [wininet]add implementation of few more options

Vijay Kiran Kamuju infyquest at
Tue Nov 8 09:24:51 CST 2005

as previous implementation had some bugs use this version

 Added implementation for INTERNET_OPTION_VERSION
 Added implementation for INTERNET_OPTION_USER_AGENT
 Added implementation for unsupported options
 Added some minimalist testcases

---------- Forwarded message ----------
From: Dmitry Timoshkov <dmitry at>
Date: Nov 8, 2005 8:16 PM
Subject: Re: [wininet]add implementation of few more options
To: Vijay Kiran Kamuju <infyquest at>
Cc: wine-devel at

"Vijay Kiran Kamuju" infyquest at wrote:

> + retval=InternetQueryOptionA(hinet,INTERNET_OPTION_USER_AGENT,NULL,&len);
> + err=GetLastError();
> + ok(len == strlen(useragent)+1,"Got wrong user agent length %ld len instead of %d\n",len,strlen(useragent));
> + ok(retval == 0,"Got wrong return value %d\n",retval);
> + ok(err == ERROR_INSUFFICIENT_BUFFER, "Got wrong error code%ld\n",err);

You need to set last error to some bogus value before calling an API
in order to make sure that the API really changes it. Usually setting
last error to 0xdeadbeef works fine for that purpose.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: useragent-new1.patch
Type: text/x-patch
Size: 8528 bytes
Desc: not available
Url :

More information about the wine-patches mailing list