[Bug 3426] WinGizmo does not download magic number code

wine-bugs at winehq.org wine-bugs at winehq.org
Thu May 1 13:50:38 CDT 2008


http://bugs.winehq.org/show_bug.cgi?id=3426


Anastasius Focht <focht at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |focht at gmx.net




--- Comment #6 from Anastasius Focht <focht at gmx.net>  2008-05-01 13:50:37 ---
Hello,

I stumbled over this one while verifying another bug (crashing "Bonjour
Service" ... which this app also ships, like iTunes).
Download from: http://gizmo5.com/pc/download/ (2008 Apr 14, Version 4.0.2.361,
14 MB).
wine-0.9.60-580-gad79873

Set the bonjour service start type to 0x3 or 0x4 to work around the
mDNSResponder.exe crash (due to SCM/service component bug).

The real show stopper (comments #3 - #5) is the failure of retrieving a
login-captcha from some website.
Relevant trace:

--- snip ---
..
0021:trace:wininet:HttpOpenRequestW (0x2, L"GET",
L"/dll/app?class=DLL;proc=accCreateGetSecImage;SessionID=SESS823384963571117091887601103582563716;ZoneID=1;PartnerID=0",
L"HTTP/1.0", (null), (nil), 80200000, 00000001)
..
0021:trace:wininet:HTTP_ProcessHeader --> L"Host": L"aps03.plugndial.com" -
0x22000000
0021:trace:wininet:HTTP_InsertCustomHeader --> L"Host": L"aps03.plugndial.com"
0021:trace:wininet:HTTP_HttpAddRequestHeadersW copying header: L"User-Agent:
Gizmo5\r\n"
0021:trace:wininet:HTTP_HttpAddRequestHeadersW interpreting header
L"User-Agent: Gizmo5"
0021:trace:wininet:HTTP_InterpretHttpHeader field(L"User-Agent")
Value(L"Gizmo5")
0021:trace:wininet:HTTP_ProcessHeader --> L"User-Agent": L"Gizmo5" - 0x22000000
0021:trace:wininet:HTTP_InsertCustomHeader --> L"User-Agent": L"Gizmo5"
0021:trace:wininet:HTTP_GetCustomHeaderIndex L"Host"
0021:trace:wininet:HTTP_GetCustomHeaderIndex Return: 0
0021:trace:wininet:InternetGetCookieW (L"http://aps03.plugndial.com", (null),
(nil), 0x7c33e784)
0021:trace:wininet:InternetCrackUrlW (L"http://aps03.plugndial.com" 0 0
0x7c33c4a0)
..
0021:trace:wininet:GetAddress L"aps03.plugndial.com"
0036:trace:wininet:InternetGetConnectedState (0x7d1d49e0, 0x00000000)
0036:fixme:wininet:InternetGetConnectedState always returning LAN connection.
..
0036:fixme:wininet:InternetGetConnectedState always returning LAN connection.
..
0021:trace:wininet:HttpOpenRequestW returning 0x3
0021:trace:wininet:HttpAddRequestHeadersW 0x3, L"Accept: audio/*, image/*,
text/*\r\nUser-Agent: Gizmo Project\r\n", 61, 268435456
0021:trace:wininet:WININET_AddRef 0x14fb00 -> refcount = 2
0021:trace:wininet:WININET_GetObject handle 3 -> 0x14fb00
0021:trace:wininet:HTTP_HttpAddRequestHeadersW copying header: L"Accept:
audio/*, image/*, text/*\r\nUser-Agent: Gizmo Project\r\n"
0021:trace:wininet:HTTP_HttpAddRequestHeadersW interpreting header L"Accept:
audio/*, image/*, text/*"
0021:trace:wininet:HTTP_InterpretHttpHeader field(L"Accept") Value(L"audio/*,
image/*, text/*")
0021:trace:wininet:HTTP_ProcessHeader --> L"Accept": L"audio/*, image/*,
text/*" - 0x12000000
0021:trace:wininet:HTTP_GetCustomHeaderIndex L"Accept"
0021:trace:wininet:HTTP_GetCustomHeaderIndex Return: -1
0021:trace:wininet:HTTP_InsertCustomHeader --> L"Accept": L"audio/*, image/*,
text/*"
0021:trace:wininet:HTTP_HttpAddRequestHeadersW interpreting header
L"User-Agent: Gizmo Project"
0021:trace:wininet:HTTP_InterpretHttpHeader field(L"User-Agent") Value(L"Gizmo
Project")
0021:trace:wininet:HTTP_ProcessHeader --> L"User-Agent": L"Gizmo Project" -
0x12000000
0021:trace:wininet:HTTP_GetCustomHeaderIndex L"User-Agent"
0021:trace:wininet:HTTP_GetCustomHeaderIndex Return: 1
0021:trace:wininet:WININET_Release object 0x14fb00 refcount = 1
0021:trace:wininet:InternetCloseHandle 0x3
..
--- snip ---

It fails while (re)adding http request headers before sending the request.
HTTP_ProcessHeader() from dlls/wininet/http.c gets the
HTTP_ADDHDR_FLAG_ADD_IF_NEW case wrong, it returns FALSE because the user-agent
header is already present.
With a fix in place, the security image (captcha) is successfully retrieved.

Regards


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list