mirror of
https://github.com/ventoy/Ventoy.git
synced 2025-06-01 23:58:40 -04:00
1.0.04 release
This commit is contained in:
parent
c72f96312c
commit
790fa744f8
19 changed files with 458 additions and 86 deletions
|
@ -426,12 +426,22 @@ static int VentoyFillLocation(UINT64 DiskSizeInBytes, UINT32 StartSectorId, UINT
|
|||
|
||||
int VentoyFillMBR(UINT64 DiskSizeBytes, MBR_HEAD *pMBR)
|
||||
{
|
||||
GUID Guid;
|
||||
UINT32 DiskSignature;
|
||||
UINT32 DiskSectorCount;
|
||||
UINT32 PartSectorCount;
|
||||
UINT32 PartStartSector;
|
||||
|
||||
VentoyGetLocalBootImg(pMBR);
|
||||
|
||||
CoCreateGuid(&Guid);
|
||||
|
||||
memcpy(&DiskSignature, &Guid, sizeof(UINT32));
|
||||
|
||||
Log("Disk signature: 0x%08x", DiskSignature);
|
||||
|
||||
*((UINT32 *)(pMBR->BootCode + 0x1B8)) = DiskSignature;
|
||||
|
||||
DiskSectorCount = (UINT32)(DiskSizeBytes / 512);
|
||||
|
||||
//Part1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue