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
9a8dc42d
Commit
9a8dc42d
authored
Feb 22, 2025
by
longpanda
Browse files
Fix the issue introduced in LinuxGUI version. (#3128)
parent
6166a813
Changes
22
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
34 deletions
+40
-34
vtoycli/vtoygpt.c
vtoycli/vtoygpt.c
+20
-17
vtoygpt/vtoygpt.c
vtoygpt/vtoygpt.c
+20
-17
No files found.
vtoycli/vtoygpt.c
View file @
9a8dc42d
...
@@ -190,6 +190,8 @@ int vtoygpt_main(int argc, char **argv)
...
@@ -190,6 +190,8 @@ int vtoygpt_main(int argc, char **argv)
Name
=
pMainGptInfo
->
PartTbl
[
1
].
Name
;
Name
=
pMainGptInfo
->
PartTbl
[
1
].
Name
;
if
(
Name
[
0
]
==
'V'
&&
Name
[
1
]
==
'T'
&&
Name
[
2
]
==
'O'
&&
Name
[
3
]
==
'Y'
)
if
(
Name
[
0
]
==
'V'
&&
Name
[
1
]
==
'T'
&&
Name
[
2
]
==
'O'
&&
Name
[
3
]
==
'Y'
)
{
if
(
pMainGptInfo
->
PartTbl
[
1
].
Attr
!=
VENTOY_EFI_PART_ATTR
)
{
{
pMainGptInfo
->
PartTbl
[
1
].
Attr
=
VENTOY_EFI_PART_ATTR
;
pMainGptInfo
->
PartTbl
[
1
].
Attr
=
VENTOY_EFI_PART_ATTR
;
pMainGptInfo
->
Head
.
PartTblCrc
=
VtoyCrc32
(
pMainGptInfo
->
PartTbl
,
sizeof
(
pMainGptInfo
->
PartTbl
));
pMainGptInfo
->
Head
.
PartTblCrc
=
VtoyCrc32
(
pMainGptInfo
->
PartTbl
,
sizeof
(
pMainGptInfo
->
PartTbl
));
...
@@ -210,6 +212,7 @@ int vtoygpt_main(int argc, char **argv)
...
@@ -210,6 +212,7 @@ int vtoygpt_main(int argc, char **argv)
fsync
(
fd
);
fsync
(
fd
);
}
}
}
}
}
free
(
pMainGptInfo
);
free
(
pMainGptInfo
);
free
(
pBackGptInfo
);
free
(
pBackGptInfo
);
...
...
vtoygpt/vtoygpt.c
View file @
9a8dc42d
...
@@ -290,6 +290,8 @@ int main(int argc, const char **argv)
...
@@ -290,6 +290,8 @@ int main(int argc, const char **argv)
Name
=
pMainGptInfo
->
PartTbl
[
1
].
Name
;
Name
=
pMainGptInfo
->
PartTbl
[
1
].
Name
;
if
(
Name
[
0
]
==
'V'
&&
Name
[
1
]
==
'T'
&&
Name
[
2
]
==
'O'
&&
Name
[
3
]
==
'Y'
)
if
(
Name
[
0
]
==
'V'
&&
Name
[
1
]
==
'T'
&&
Name
[
2
]
==
'O'
&&
Name
[
3
]
==
'Y'
)
{
if
(
pMainGptInfo
->
PartTbl
[
1
].
Attr
!=
VENTOY_EFI_PART_ATTR
)
{
{
pMainGptInfo
->
PartTbl
[
1
].
Attr
=
VENTOY_EFI_PART_ATTR
;
pMainGptInfo
->
PartTbl
[
1
].
Attr
=
VENTOY_EFI_PART_ATTR
;
pMainGptInfo
->
Head
.
PartTblCrc
=
VtoyCrc32
(
pMainGptInfo
->
PartTbl
,
sizeof
(
pMainGptInfo
->
PartTbl
));
pMainGptInfo
->
Head
.
PartTblCrc
=
VtoyCrc32
(
pMainGptInfo
->
PartTbl
,
sizeof
(
pMainGptInfo
->
PartTbl
));
...
@@ -310,6 +312,7 @@ int main(int argc, const char **argv)
...
@@ -310,6 +312,7 @@ int main(int argc, const char **argv)
fsync
(
fd
);
fsync
(
fd
);
}
}
}
}
}
free
(
pMainGptInfo
);
free
(
pMainGptInfo
);
free
(
pBackGptInfo
);
free
(
pBackGptInfo
);
...
...
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