http://bugs.winehq.org/show_bug.cgi?id=22064
--- Comment #30 from Mikko Rasa tdb@tdb.fi 2010-08-19 09:53:55 --- Created an attachment (id=30225) --> (http://bugs.winehq.org/attachment.cgi?id=30225) Fix "unable to download file" errors
This patch makes WinHttpQueryHeaders work properly, allowing the game launcher to download files. The issue wasn't timing related after all, but apparently enabling the debug channel just happened to cause the lpdwBufferLength variable to contain zero and make the function return the error code the launcher was expecting.