Archive: Fix for InetC progressbar bug


Fix for InetC progressbar bug
  The current release of InetC has a small bug which can cause the download progressbar to disappear. This was originally thought to be a redraw issue, but it was due to other plugins that would alter the nsis progressbar (eg RealProgress).

I've been aware of this bug for about a year, it was also mentioned in a few other threads like http://forums.winamp.com/showthread....hreadid=274214

To fix the issue, simply replace the if block on line 875 of inet.cpp with the following code:

LONG prbStyle= WS_VISIBLE | WS_CHILD | WS_CLIPSIBLINGS | WS_CLIPCHILDREN;

if(
hPrbOld != NULL/* && GetClassName(hPrbOld, s, sizeof(s)) > 0 && lstrcmpi(s, "msctl_progress32") == 0*/)
{
LONG oldStyle = GetWindowLong(hPrbOld, GWL_STYLE);
oldStyle |= prbStyle;
SetWindowLong(hPrbNew, GWL_STYLE, oldStyle);
}
else
{
SetWindowLong(hPrbNew, GWL_STYLE, prbStyle);
}
I wont update the wiki page or upload a new binary, but hopefully Takhir will implement this update shortly.

:D

Nice!

Stu


Thanks Backland!
I've uploaded new build and hope bugs list is empty now. But new option requests queue never ends ;)