You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for (i=0; hdskBitmap[i].next!=hdskBitmap; sectors+=hdskBitmap[i].length, i++) {
31
36
if (hdskBitmap[i].type==0) {
32
-
if ((0x001FFFFF<hdskBitmap[i].length) || ((stat->free&hdskBitmap[i].length) ==0)) {
37
+
if ((maxsize<hdskBitmap[i].length) || ((stat->free&hdskBitmap[i].length) ==0)) {
33
38
stat->free+=hdskBitmap[i].length;
34
39
}
35
40
sectors+=hdskBitmap[i].length;
36
41
}
37
42
}
38
43
39
-
for (partMax=deviceinfo[device].partitionMaxSize; 0x0003FFFF<partMax; partMax=deviceinfo[device].partitionMaxSize) { // As weird as it looks, this was how it was done in the original HDD.IRX.
40
-
for (; 0x0003FFFF<partMax; partMax /= 2) {
44
+
for (partMax=deviceinfo[device].partitionMaxSize; minsize<partMax; partMax=deviceinfo[device].partitionMaxSize) { // As weird as it looks, this was how it was done in the original HDD.IRX.
45
+
for (; minsize<partMax; partMax /= 2) {
41
46
// Non-SONY: Perform 64-bit arithmetic here to avoid overflows when dealing with large disks.
42
47
if ((sectors % partMax==0) && ((u64)sectors+partMax<deviceinfo[device].totalLBA)) {
43
-
if ((0x001FFFFF<partMax) || (stat->free&partMax) ==0) {
48
+
if ((maxsize<partMax) || (stat->free&partMax) ==0) {
0 commit comments