X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/6166a813ea84749e14973c1d1edfa1024e1b3b85..9a8dc42d93195f247dbff334bd342fc960cdd2d6:/LinuxGUI/Ventoy2Disk/Web/ventoy_http.c diff --git a/LinuxGUI/Ventoy2Disk/Web/ventoy_http.c b/LinuxGUI/Ventoy2Disk/Web/ventoy_http.c index ec0c3ca..88f0e95 100644 --- a/LinuxGUI/Ventoy2Disk/Web/ventoy_http.c +++ b/LinuxGUI/Ventoy2Disk/Web/ventoy_http.c @@ -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);