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
791da486
Commit
791da486
authored
Mar 30, 2022
by
longpanda
Browse files
Update for efi mouse
parent
f683bcbd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
5 deletions
+10
-5
GRUB2/MOD_SRC/grub-2.04/grub-core/fs/fshelp.c
GRUB2/MOD_SRC/grub-2.04/grub-core/fs/fshelp.c
+1
-1
GRUB2/MOD_SRC/grub-2.04/grub-core/kern/disk.c
GRUB2/MOD_SRC/grub-2.04/grub-core/kern/disk.c
+1
-1
GRUB2/MOD_SRC/grub-2.04/grub-core/term/efi/mouse.c
GRUB2/MOD_SRC/grub-2.04/grub-core/term/efi/mouse.c
+7
-2
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_cmd.c
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_cmd.c
+1
-1
No files found.
GRUB2/MOD_SRC/grub-2.04/grub-core/fs/fshelp.c
View file @
791da486
...
...
@@ -426,7 +426,7 @@ grub_fshelp_read_file (grub_disk_t disk, grub_fshelp_node_t node,
if
(
grub_errno
)
return
-
1
;
}
else
if
(
read_hook
!=
(
grub_disk_read_hook_t
)
grub_disk_blocklist_read
)
else
if
(
read_hook
!=
(
grub_disk_read_hook_t
)
(
void
*
)
grub_disk_blocklist_read
)
grub_memset
(
buf
,
0
,
blockend
);
buf
+=
blocksize
-
skipfirst
;
...
...
GRUB2/MOD_SRC/grub-2.04/grub-core/kern/disk.c
View file @
791da486
...
...
@@ -471,7 +471,7 @@ grub_err_t
grub_disk_read
(
grub_disk_t
disk
,
grub_disk_addr_t
sector
,
grub_off_t
offset
,
grub_size_t
size
,
void
*
buf
)
{
if
(
disk
->
read_hook
==
(
grub_disk_read_hook_t
)
grub_disk_blocklist_read
)
if
(
disk
->
read_hook
==
(
grub_disk_read_hook_t
)
(
void
*
)
grub_disk_blocklist_read
)
{
return
grub_disk_blocklist_read
((
ventoy_img_chunk_list
*
)
disk
->
read_hook_data
,
sector
,
size
,
disk
->
log_sector_size
);
}
...
...
GRUB2/MOD_SRC/grub-2.04/grub-core/term/efi/mouse.c
View file @
791da486
...
...
@@ -111,13 +111,14 @@ grub_efi_mouse_prot_init (void)
mouse_input
=
grub_malloc
(
sizeof
(
grub_efi_mouse_prot_t
));
if
(
!
mouse_input
)
return
NULL
;
goto
end
;
mouse_input
->
mouse
=
grub_malloc
(
count
*
sizeof
(
grub_efi_simple_pointer_protocol_t
*
));
if
(
!
mouse_input
->
mouse
)
{
grub_free
(
mouse_input
);
return
NULL
;
mouse_input
=
NULL
;
goto
end
;
}
mouse_input
->
count
=
count
;
for
(
i
=
0
;
i
<
count
;
i
++
)
...
...
@@ -135,6 +136,10 @@ grub_efi_mouse_prot_init (void)
mouse_input
->
mouse
[
i
]
->
mode
->
y
,
mouse_input
->
mouse
[
i
]
->
mode
->
z
);
#endif
}
end:
efi_call_1
(
b
->
free_pool
,
buf
);
return
mouse_input
;
}
...
...
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_cmd.c
View file @
791da486
...
...
@@ -3152,7 +3152,7 @@ int ventoy_get_block_list(grub_file_t file, ventoy_img_chunk_list *chunklist, gr
}
else
{
file
->
read_hook
=
(
grub_disk_read_hook_t
)
grub_disk_blocklist_read
;
file
->
read_hook
=
(
grub_disk_read_hook_t
)
(
void
*
)
grub_disk_blocklist_read
;
file
->
read_hook_data
=
chunklist
;
for
(
size
=
file
->
size
;
size
>
0
;
size
-=
read
)
...
...
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