Fix the issue introduced in LinuxGUI version. (#3128)

This commit is contained in:
longpanda 2025-02-22 11:27:18 +08:00
parent 6166a813ea
commit 9a8dc42d93
22 changed files with 41 additions and 29 deletions

View file

@ -807,6 +807,8 @@ static void * ventoy_update_thread(void *data)
pstGPT->PartTbl[1].Attr, 0x8000000000000000ULL);
pstGPT->PartTbl[1].Attr = 0x8000000000000000ULL;
pstGPT->Head.PartTblCrc = ventoy_crc32(pstGPT->PartTbl, sizeof(pstGPT->PartTbl));
pstGPT->Head.Crc = 0;
pstGPT->Head.Crc = ventoy_crc32(&(pstGPT->Head), pstGPT->Head.Length);
ventoy_write_gpt_part_table(fd, disk->size_in_byte, pstGPT);