Author: tkreuzer
Date: Thu Apr 9 18:20:24 2009
New Revision: 40429
URL:
http://svn.reactos.org/svn/reactos?rev=40429&view=rev
Log:
Fix downloader progress bar, by using an ULONGLONG, so it doesn't overflow at ~40MB,
instead up to 4GB downloads should work now.
Modified:
trunk/rosapps/applications/downloader/download.c
Modified: trunk/rosapps/applications/downloader/download.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rosapps/applications/downloader/do…
==============================================================================
--- trunk/rosapps/applications/downloader/download.c [iso-8859-1] (original)
+++ trunk/rosapps/applications/downloader/download.c [iso-8859-1] Thu Apr 9 18:20:24
2009
@@ -127,7 +127,7 @@
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);