[Bug 2119] New: Incorrect semantics of AcceptTypes array in HttpOpenRequestW
Wine Bugs
wine-bugs at winehq.org
Sun Mar 21 16:38:00 CST 2004
http://bugs.winehq.org/show_bug.cgi?id=2119
Summary: Incorrect semantics of AcceptTypes array in
HttpOpenRequestW
Product: Wine
Version: 20040309
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: normal
Priority: P4
Component: wine-net
AssignedTo: wine-bugs at winehq.org
ReportedBy: wjweiss at hotmail.com
The the specification for HttpOpenRequestA requires that the AcceptTypes array
be null terminated. However, HttpOpenRequestW passes a non-null terminated array
to HttpOpenRequestA. A simple fix is to change the len param at 341 from
sizeof(CHAR *) * acceptTypesCount
to
sizeof(CHAR *) * (acceptTypesCount+1)
then add
szAcceptTypes[acceptTypesCount] = 0;
after the subsequent loop
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the wine-bugs
mailing list