http://bugs.winehq.org/show_bug.cgi?id=9006
--- Comment #5 from Mikolaj Zalewski mikolaj.zalewski@gmail.com 2007-08-15 13:31:28 --- Created an attachment (id=7607) --> (http://bugs.winehq.org/attachment.cgi?id=7607) test
As this test shows HttpQueryInfoA can be called with lpBuffer==NULL. The call will then fail but len will return the required buffer size. The input len is ignored.