]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Increase fake block size earlier to fix also programs that overflow free space calcul...
authorToni Wilen <twilen@winuae.net>
Sat, 31 Mar 2018 17:26:36 +0000 (20:26 +0300)
committerToni Wilen <twilen@winuae.net>
Sat, 31 Mar 2018 17:26:36 +0000 (20:26 +0300)
filesys.cpp

index adface9992d2a03db05cb2fbbe9bc4dbc4beded7..4fe10607bd6b9d0c1033ce5705f4849150350f03 100644 (file)
@@ -611,7 +611,8 @@ static void get_usedblocks(struct fs_usage *fsu, bool fs, int *pblocksize, uae_s
                numblocks = fsu->total / blocksize;
                if (numblocks <= 10)
                        numblocks = 10;
-               if (numblocks <= 0x7fffffff)
+               // Value that does not overflow when multiplied by 100 (uses 128 to keep it simple)
+               if (numblocks < 0x02000000)
                        break;
                blocksize *= 2;
        }