Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dadigang
Ventoy
Commits
a287bf89
Commit
a287bf89
authored
Sep 12, 2020
by
longpanda
Browse files
vhd boot
live cd fix bug
parent
a29bdfbc
Changes
21
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
Ventoy2Disk/Ventoy2Disk/Ventoy2Disk.c
Ventoy2Disk/Ventoy2Disk/Ventoy2Disk.c
+5
-1
No files found.
Ventoy2Disk/Ventoy2Disk/Ventoy2Disk.c
View file @
a287bf89
...
@@ -180,7 +180,11 @@ static BOOL IsVentoyPhyDrive(int PhyDrive, UINT64 SizeBytes, MBR_HEAD *pMBR, UIN
...
@@ -180,7 +180,11 @@ static BOOL IsVentoyPhyDrive(int PhyDrive, UINT64 SizeBytes, MBR_HEAD *pMBR, UIN
if
(
MBR
.
PartTbl
[
0
].
Active
!=
0x80
&&
MBR
.
PartTbl
[
1
].
Active
!=
0x80
)
if
(
MBR
.
PartTbl
[
0
].
Active
!=
0x80
&&
MBR
.
PartTbl
[
1
].
Active
!=
0x80
)
{
{
Log
(
"Part1 and Part2 are both NOT active 0x%x 0x%x"
,
MBR
.
PartTbl
[
0
].
Active
,
MBR
.
PartTbl
[
1
].
Active
);
Log
(
"Part1 and Part2 are both NOT active 0x%x 0x%x"
,
MBR
.
PartTbl
[
0
].
Active
,
MBR
.
PartTbl
[
1
].
Active
);
return
FALSE
;
if
(
MBR
.
PartTbl
[
2
].
Active
!=
0x80
&&
MBR
.
PartTbl
[
3
].
Active
!=
0x80
)
{
Log
(
"Part3 and Part4 are both NOT active 0x%x 0x%x"
,
MBR
.
PartTbl
[
2
].
Active
,
MBR
.
PartTbl
[
3
].
Active
);
return
FALSE
;
}
}
}
*
Part2StartSector
=
MBR
.
PartTbl
[
1
].
StartSectorId
;
*
Part2StartSector
=
MBR
.
PartTbl
[
1
].
StartSectorId
;
...
...
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment