Subversion Repositories freemyipod

Rev

Rev 551 | Rev 651 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 551 Rev 552
Line 445... Line 445...
445
                if (buf)
445
                if (buf)
446
                {
446
                {
447
                    bootflash_read("diagmode", buf, 0, size);
447
                    bootflash_read("diagmode", buf, 0, size);
448
                    if (bootflash_attributes("diagmode") & 0x800)
448
                    if (bootflash_attributes("diagmode") & 0x800)
449
                    {
449
                    {
450
                        void* buf2 = malloc(0x10000);
450
                        void* buf2 = malloc(0x80000);
451
                        if (buf2)
451
                        if (buf2)
452
                        {
452
                        {
453
                            if (!ucl_decompress(buf, size, buf2, (uint32_t*)&size))
453
                            if (!ucl_decompress(buf, size, buf2, (uint32_t*)&size))
454
                            {
454
                            {
455
                                free(buf);
455
                                free(buf);
Line 485... Line 485...
485
                if (buf)
485
                if (buf)
486
                {
486
                {
487
                    bootflash_read("diskmode", buf, 0, size);
487
                    bootflash_read("diskmode", buf, 0, size);
488
                    if (bootflash_attributes("diskmode") & 0x800)
488
                    if (bootflash_attributes("diskmode") & 0x800)
489
                    {
489
                    {
490
                        void* buf2 = malloc(0x10000);
490
                        void* buf2 = malloc(0x80000);
491
                        if (buf2)
491
                        if (buf2)
492
                        {
492
                        {
493
                            if (!ucl_decompress(buf, size, buf2, (uint32_t*)&size))
493
                            if (!ucl_decompress(buf, size, buf2, (uint32_t*)&size))
494
                            {
494
                            {
495
                                free(buf);
495
                                free(buf);