http://bugs.winehq.org/show_bug.cgi?id=9006
--- Comment #4 from Mikolaj Zalewski mikolaj.zalewski@gmail.com 2007-08-14 20:53:29 --- With native msvcrt the crash is a moment later when HttpQueryInfoA is called with len=-1. The len equal to -1 is taken from a previous call HttpQueryInfoA with buffer == NULL (despite what MSDN says it seems that buffer==NULL is valid). The strange thing is that HttpQueryInfoW works and correctly returns len==4. But maybe WideCharToMultiByte doesn't like that output buffer==NULL and length != 0 and returns 0. I will have to check why this fails.