teclilla18 / wiicoverflow

Automatically exported from code.google.com/p/wiicoverflow
0 stars 0 forks source link

Size of Games > 4 GB wrong #321

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

when adding a disc that has a size of e.g. 4.09 GB (Crash: Mind over 
Mutant), it is displayed as 0.09 GB. I think this is a bug in 
wbfs_estimate_disc, the size of an integer is wrong there. 
As my WBFS Manager also uses libwbfs, it had the same problem. I've fixed 
it by making the method returning the type u64 and added a typecast to the 
last line:
return (u64) tot * ((p->wbfs_sec_sz / p->hd_sec_sz) * 512);

Original issue reported on code.google.com by hendi20...@googlemail.com on 8 Jul 2009 at 5:49

GoogleCodeExporter commented 8 years ago
Fixed in R787

Original comment by blackbir...@gmail.com on 8 Jul 2009 at 10:33