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
89938e3c
Commit
89938e3c
authored
Jul 24, 2020
by
longpanda
Browse files
fix a bug about update with GPT partition style.
parent
85840f62
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
2 deletions
+2
-2
INSTALL/Ventoy2Disk.exe
INSTALL/Ventoy2Disk.exe
+0
-0
Ventoy2Disk/Ventoy2Disk/PhyDrive.c
Ventoy2Disk/Ventoy2Disk/PhyDrive.c
+1
-1
Ventoy2Disk/Ventoy2Disk/Utility.c
Ventoy2Disk/Ventoy2Disk/Utility.c
+1
-1
No files found.
INSTALL/Ventoy2Disk.exe
View file @
89938e3c
No preview for this file type
Ventoy2Disk/Ventoy2Disk/PhyDrive.c
View file @
89938e3c
...
@@ -1814,7 +1814,7 @@ int UpdateVentoy2PhyDrive(PHY_DRIVE_INFO *pPhyDrive)
...
@@ -1814,7 +1814,7 @@ int UpdateVentoy2PhyDrive(PHY_DRIVE_INFO *pPhyDrive)
Log
(
"Lock volume for update .......................... "
);
Log
(
"Lock volume for update .......................... "
);
hVolume
=
INVALID_HANDLE_VALUE
;
hVolume
=
INVALID_HANDLE_VALUE
;
Status
=
GetVentoyVolumeName
(
pPhyDrive
->
PhyDrive
,
MBR
.
PartTbl
[
1
].
StartSector
Id
,
DriveLetters
,
sizeof
(
DriveLetters
),
TRUE
);
Status
=
GetVentoyVolumeName
(
pPhyDrive
->
PhyDrive
,
(
UINT32
)
StartSector
,
DriveLetters
,
sizeof
(
DriveLetters
),
TRUE
);
if
(
ERROR_SUCCESS
==
Status
)
if
(
ERROR_SUCCESS
==
Status
)
{
{
Log
(
"Now lock and dismount volume <%s>"
,
DriveLetters
);
Log
(
"Now lock and dismount volume <%s>"
,
DriveLetters
);
...
...
Ventoy2Disk/Ventoy2Disk/Utility.c
View file @
89938e3c
...
@@ -588,7 +588,7 @@ int VentoyFillGpt(UINT64 DiskSizeBytes, VTOY_GPT_INFO *pInfo)
...
@@ -588,7 +588,7 @@ int VentoyFillGpt(UINT64 DiskSizeBytes, VTOY_GPT_INFO *pInfo)
CoCreateGuid
(
&
(
Table
[
1
].
PartGuid
));
CoCreateGuid
(
&
(
Table
[
1
].
PartGuid
));
Table
[
1
].
StartLBA
=
Table
[
0
].
LastLBA
+
1
;
Table
[
1
].
StartLBA
=
Table
[
0
].
LastLBA
+
1
;
Table
[
1
].
LastLBA
=
Table
[
1
].
StartLBA
+
VENTOY_EFI_PART_SIZE
/
512
-
1
;
Table
[
1
].
LastLBA
=
Table
[
1
].
StartLBA
+
VENTOY_EFI_PART_SIZE
/
512
-
1
;
Table
[
1
].
Attr
=
0x
C
000000000000001ULL
;
Table
[
1
].
Attr
=
0x
8
000000000000001ULL
;
memcpy
(
Table
[
1
].
Name
,
L"VTOYEFI"
,
7
*
2
);
memcpy
(
Table
[
1
].
Name
,
L"VTOYEFI"
,
7
*
2
);
#if 0
#if 0
...
...
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