RESEND [wininet]add implementation of few more options
Vijay Kiran Kamuju
infyquest at gmail.com
Tue Nov 8 09:24:51 CST 2005
as previous implementation had some bugs use this version
ChangeLog
----------------
Added implementation for INTERNET_OPTION_VERSION
Added implementation for INTERNET_OPTION_USER_AGENT
Fixed behavior for INTERNET_OPTION_HTTP_VERSION
Added implementation for unsupported options
Added some minimalist testcases
---------- Forwarded message ----------
From: Dmitry Timoshkov <dmitry at baikal.ru>
Date: Nov 8, 2005 8:16 PM
Subject: Re: [wininet]add implementation of few more options
To: Vijay Kiran Kamuju <infyquest at gmail.com>
Cc: wine-devel at winehq.org
"Vijay Kiran Kamuju" infyquest at gmail.com 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.
--
Dmitry.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: useragent-new1.patch
Type: text/x-patch
Size: 8528 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20051108/4e30737c/useragent-new1.patch
More information about the wine-patches
mailing list