Fix downloader progress bar, by using an ULONGLONG, so it doesn't overflow at ~40MB, instead up to 4GB downloads should work now.

svn path=/trunk/; revision=40429
This commit is contained in:
Timo Kreuzer 2009-04-09 14:20:24 +00:00
parent fbd73e2e9e
commit 32337f8c06

View file

@ -127,7 +127,7 @@ dlOnProgress(IBindStatusCallback* iface, ULONG ulProgress,
Item = GetDlgItem(This->hDialog, IDC_PROGRESS);
if (NULL != Item && 0 != ulProgressMax)
{
SendMessageW(Item, PBM_SETPOS, (ulProgress * 100) / ulProgressMax, 0);
SendMessageW(Item, PBM_SETPOS, ((ULONGLONG)ulProgress * 100) / ulProgressMax, 0);
}
Item = GetDlgItem(This->hDialog, IDC_STATUS);