wininet: Correct user agent handling

Juan Lang juan.lang at gmail.com
Fri Oct 2 10:37:25 CDT 2009


Spotted while running tests of other changes:  wininet would crash if
queried for the user agent via InternetQueryOptionW if the user agent
isn't set.  The tests only call InternetQueryOptionA, so they didn't
crash, since it calls WideCharToMultiByte, which handles NULL input
gracefully.  The returned length was also incorrect, which the tests
already showed.
--Juan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-Correct-user-agent-handling.patch
Type: text/x-patch
Size: 3330 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20091002/f3172db0/attachment-0001.bin>


More information about the wine-patches mailing list