Hi.
I have initialized it the starting of the code. see newlen=len=strlen(useragent)+1; Are you talking about the first one, (i could see only one near the begining).
Thanks, Vijay
On 2/3/06, Dmitry Timoshkov dmitry@codeweavers.com wrote:
On Fri, 2006-02-03 at 15:36 +0530, Vijay Kiran Kamuju wrote:
+SetLastError(0xdeadbeef);
retval=InternetQueryOptionA(hinet,INTERNET_OPTION_USER_AGENT,NULL,&len);
+err=GetLastError();
You need to initialize length parameter before InternetQueryOption call.
-- Dmitry.