http://bugs.winehq.org/show_bug.cgi?id=9006
--- Comment #6 from Mikolaj Zalewski mikolaj.zalewski@gmail.com 2007-08-15 13:42:10 --- Created an attachment (id=7608) --> (http://bugs.winehq.org/attachment.cgi?id=7608) small hack
This hack makes HttpQueryInfoA work well enough for Photoshop CS to be happy. It is not correct (doesn't work for headers longer than 256 chars, should return NULL if lpBuffer==NULL) and a better fix would require changes in both HttpQueryInfoA and HttpQueryInfoW. I'm also not sure is HttpQueryInfoA returns the correct length when the codepage is multi-byte. If it needs to be fixed it would require some small architectural changes. I could look into making a better patch.