Fix downloader progress bar, by using an ULONGLONG, so it doesn't overflow at ~40MB...
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Thu, 9 Apr 2009 14:20:24 +0000 (14:20 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Thu, 9 Apr 2009 14:20:24 +0000 (14:20 +0000)
svn path=/trunk/; revision=40429

rosapps/applications/downloader/download.c

index ded0101..1dc77c6 100644 (file)
@@ -127,7 +127,7 @@ dlOnProgress(IBindStatusCallback* iface, ULONG ulProgress,
     Item = GetDlgItem(This->hDialog, IDC_PROGRESS);
     if (NULL != Item && 0 != ulProgressMax)
     {
     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);
     }
 
     Item = GetDlgItem(This->hDialog, IDC_STATUS);