]> glassweightruler.freedombox.rocks Git - Ventoy.git/blobdiff - LinuxGUI/Ventoy2Disk/Web/ventoy_http.c
Only for VirtualBox.
[Ventoy.git] / LinuxGUI / Ventoy2Disk / Web / ventoy_http.c
index ec0c3ca908cae8e62a2fc78dcc278c1e04970789..88f0e953f1468aaa216a889414c797d6d74fa381 100644 (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);