http://bugs.winehq.org/show_bug.cgi?id=12326
--- Comment #6 from Tefnet developers developers@tefnet.pl 2008-06-28 01:39:26 --- (In reply to comment #5)
The lstrcpynW are obviously incorrect - the last parameter should be the number of characters, not the number of bytes.
Yes, I've posted correct patch a while ago.
Also, we should be probably using INTERNET_MAX_URL instead of MAX_PATH. The INTERNET_MAX_URL gives 2048 bytes for the path part of the URL.
The problem is that there are a lot of variables with MAX_PATH... I'm not sure which of those can be INTERNET_MAX_URL. For this bug I think that fixing length of wfileName would be enough.