[Bug 20497] Smilebox cannot be installed (web update fails)

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Jun 16 20:48:22 CDT 2014


http://bugs.winehq.org/show_bug.cgi?id=20497

Sebastian Lackner <sebastian at fds-team.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sebastian at fds-team.de

--- Comment #12 from Sebastian Lackner <sebastian at fds-team.de> ---
Created attachment 48803
  --> http://bugs.winehq.org/attachment.cgi?id=48803
wininet: Don't update *lpdwIndex if buffer is not sufficient.

The application calls HttpQueryInfo* and provides a field index variable with
content 0. The first call is with a buffer size of zero, afterwards with an
allocated buffer ... the only problem is that wine always increments the field
index, even if the function fails with ERROR_INSUFFICIENT_BUFFER. The
application itself doesn't reset the index, and this has the effect that the
application never finds the expected header field and internally gets stuck...

The attached patch fixes the updater issue for me. When starting the program
afterwards it will tell that you that something went wrong, and bunch of
additional fixme's will scroll down - nevertheless this is probably a different
problem and should be discussed in a separate bug report. It will take really
long till the installation is finished, so don't give up. ;) The only way to
see the progress is by taking a look at the *.log file in the application
directory.

Could you guys please test yourself?

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list